[media] stk1160: Check *nplanes in queue_setup
authorHelen Fornazier <helen.koike@collabora.co.uk>
Tue, 10 May 2016 03:06:14 +0000 (00:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 11:05:09 +0000 (08:05 -0300)
commitd27d5f1a4d00808cb8751ddb972a40f952576fd8
treea13b14bc0fe9ef0cf4c555aaf1103f3eae53534b
parentf4bca74f3721b8726fe609c22534a3bad90d2790
[media] stk1160: Check *nplanes in queue_setup

If *nplanes is not zero, it should use the requested size if valid

Signed-off-by: Helen Koike <helen.koike@collabora.co.uk>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/stk1160/stk1160-v4l.c