usb: dwc3: Replace sscanf with kstrtou8_from_user
Variable "ubuf " and "buf" may point to kernel address, a malicious
user could use code logic to get kernel information. Use
kstrtou8_from_user() which take care of copying buffer, and finding
u8 value here.
Change-Id: Ibb4373bdef7e921b81255d29b8650dd31b46f3c9
Signed-off-by:
Liangliang Lu <luliang@codeaurora.org>
Loading
Please register or sign in to comment