]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: fix MEDIA_IOC_DEVICE_INFO return code
authorNicolas THERY <nicolas.thery@st.com>
Tue, 7 Aug 2012 08:24:59 +0000 (05:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Aug 2012 10:57:57 +0000 (07:57 -0300)
commit0c3c6ee9298953225f00ea78bb6332025d945cf2
tree015ec65bc173188bb70a5a6247744bb66a579672
parent75c5aae6c6ee26ab82f4f5cd78d2be3a0ee1b664
[media] media: fix MEDIA_IOC_DEVICE_INFO return code

The MEDIA_IOC_DEVICE_INFO ioctl was returning a positive value rather
than a negative error code when failing to copy output parameter to
user-space.

Tested by compilation only.

Signed-off-by: Nicolas Thery <nicolas.thery@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/media-device.c