rsi: check length before USB read/write register
These checks are required. Otherwise we may end up getting memory corruption if invalid length is passed. Fixes: b97e9b94 ("rsi: Add new host interface operations") Signed-off-by: NAmitkumar Karwar <amit.karwar@redpinesignals.com> Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Showing
想要评论请 注册 或 登录