[media] dib0700_core: don't use stack on I2C reads
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 7 Oct 2016 09:53:51 +0000 (06:53 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 14 Oct 2016 15:38:10 +0000 (12:38 -0300)
commitfa1ecd8dc454fe2d3075a964240f45ceb60cb9e0
treebd166264a1a6460fa1c2ebd477bc99da3335d76e
parentbd1f976cc95b0689f889c8d93434ee61dd09b08b
[media] dib0700_core: don't use stack on I2C reads

Be sure that I2C reads won't use stack by passing
a pointer to the state buffer, that we know it was
allocated via kmalloc, instead of relying on the buffer
allocated by an I2C client.

Reviewed-by: Patrick Boettcher <patrick.boettcher@posteo.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/dib0700_core.c