Re: [PATCH v7 3/8] bus: mhi: core: Add range check for channel id received in event ring

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:43PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > MHI data completion handler function reads channel id from event > ring element. Value is under the control of MHI devices and can be > any value between 0 and 255. In order to prevent out of bound access >

[PATCH v7 3/8] bus: mhi: core: Add range check for channel id received in event ring

2020-05-08 Thread Bhaumik Bhatt
From: Hemant Kumar MHI data completion handler function reads channel id from event ring element. Value is under the control of MHI devices and can be any value between 0 and 255. In order to prevent out of bound access add a bound check against the max channel supported by controller and skip