]> git.baikalelectronics.ru Git - kernel.git/commit
media: igorplugusb: use correct size pass to igorplugusb_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 28 Jun 2022 06:54:53 +0000 (07:54 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 15 Jul 2022 13:52:20 +0000 (14:52 +0100)
commit95202edb9d198fb28cde00bce4a5f76e8f7b386b
tree43606b94456fc4ea2928c2d2a7cfd612b1e6183d
parent971377e5625282c0ac6fe1d872197bf66f3cddf9
media: igorplugusb: use correct size pass to igorplugusb_probe()

After 'buf_in' change to pointer, the sizeof() is not correct buffer
size, it should be MAX_PACKET.

Fixes: a914df05159c ("media: igorplugusb: respect DMA coherency")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/igorplugusb.c