Re: [PATCH] usb: typec: Prevent setting invalid opmode value

2020-10-27 Thread Sriharsha Allenki
Hi Heikki, Thanks a lot for the review. On 10/26/2020 6:35 PM, Heikki Krogerus wrote: > On Thu, Oct 22, 2020 at 03:12:14PM +0530, Sriharsha Allenki wrote: >> Setting opmode to invalid values would lead to a >> paging fault failure when there is an access to the >> power_operation_mode. >> >>

Re: [PATCH] usb: typec: Prevent setting invalid opmode value

2020-10-26 Thread Heikki Krogerus
On Thu, Oct 22, 2020 at 03:12:14PM +0530, Sriharsha Allenki wrote: > Setting opmode to invalid values would lead to a > paging fault failure when there is an access to the > power_operation_mode. > > Prevent this by checking the validity of the value > that the opmode is being set. > > Cc: >

[PATCH] usb: typec: Prevent setting invalid opmode value

2020-10-22 Thread Sriharsha Allenki
Setting opmode to invalid values would lead to a paging fault failure when there is an access to the power_operation_mode. Prevent this by checking the validity of the value that the opmode is being set. Cc: Fixes: fab9288428ec ("usb: USB Type-C connector class") Signed-off-by: Sriharsha