Skip to content
Commit 1a44fb38 authored by Hayes Wang's avatar Hayes Wang Committed by David S. Miller
Browse files

r8152: check the informaton of the device

Verify some fields of the USB descriptor to make sure the driver
could be used by the device.

Besides, remove the check of endpoint number in rtl8152_probe().
usb_find_common_endpoints() includes it.

BugLink: https://syzkaller.appspot.com/bug?id=912c9c373656996801b4de61f1e3cb326fe940aa


Reported-by: default avatar <syzbot+95afd23673f5dd295c57@syzkaller.appspotmail.com>
Fixes: c2198943

 ("r8152: search the configuration of vendor mode")
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b76eade
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment