Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ef6a63c authored by Liangliang Lu's avatar Liangliang Lu
Browse files

usb: dwc3: Replace sscanf with kstrtou8_from_user



Variable "ubuf " 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: I7228d893ef757c814b26745663270b8a461b1728
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent 3f91f859
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment