media: flexcop-usb: sanity checking of endpoint type
authorOliver Neukum <oneukum@suse.com>
Thu, 24 Sep 2020 11:37:40 +0000 (13:37 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 09:24:50 +0000 (11:24 +0200)
commitd725d20e81c2adc2d3c956ad8aa420b7705532a8
treeeb1cbceef8ad0b974696cec5ee131b680e6dc4f6
parente8897acb898d4d345edab76bbd5e50b60580909a
media: flexcop-usb: sanity checking of endpoint type

Make sure the endpoint is ISOC in and do not hard code USB_DIR_IN.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/b2c2/flexcop-usb.c
drivers/media/usb/b2c2/flexcop-usb.h