]> git.karo-electronics.de Git - linux-beck.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)
commitb17d39453b40730cbfdb2cab9565f8ba8627b7f8
tree015ec65bc173188bb70a5a6247744bb66a579672
parentff54298bc743c42fac205c0fc1b62271682b3668
[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