linux/drivers/media
Mauro Carvalho Chehab 259a41d9ae media: dvb_frontend: fix return values for FE_SET_PROPERTY
There are several problems with regards to the return of
FE_SET_PROPERTY. The original idea were to return per-property
return codes via tvp->result field, and to return an updated
set of values.

However, that never worked. What's actually implemented is:

- the FE_SET_PROPERTY implementation doesn't call .get_frontend
  callback in order to get the actual parameters after return;

- the tvp->result field is only filled if there's no error.
  So, it is always filled with zero;

- FE_SET_PROPERTY doesn't call memdup_user() nor any other
  copy_to_user() function. So, any changes to the properties
  will be lost;

- FE_SET_PROPERTY is declared as a write-only ioctl (IOW).

While we could fix the above, it could cause regressions.

So, let's just assume what the code really does, updating
the documentation accordingly and removing the logic that
would update the discarded tvp->result.

Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-10-11 12:58:40 -04:00
..
cec [media] media: rc: ensure that protocols are enabled for scancode drivers 2017-10-04 15:22:26 -03:00
common [media] v4l2-tpg: add Y10 and Y12 support 2017-10-04 16:58:39 -03:00
dvb-core media: dvb_frontend: fix return values for FE_SET_PROPERTY 2017-10-11 12:58:40 -04:00
dvb-frontends media: dvb_frontend: get rid of get_property() callback 2017-10-11 12:51:36 -04:00
firewire
i2c [media] smiapp: Make clock control optional 2017-10-04 17:25:26 -03:00
mmc
pci Linux 4.14-rc2 2017-09-29 05:24:10 -04:00
platform [media] cec-gpio: don't generate spurious HPD events 2017-10-04 17:04:18 -03:00
radio media: fix media Kconfig help syntax issues 2017-09-23 14:59:24 -04:00
rc media: rc: ir-spi needs OF 2017-10-11 12:42:09 -04:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: dvb: i2c transfers over usb cannot be done from stack 2017-09-23 07:21:33 -04:00
usb media: friio-fe: get rid of set_property() 2017-10-11 12:49:55 -04:00
v4l2-core [media] v4l2-ctrls.c: allow empty control handlers 2017-10-04 17:05:00 -03:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00