2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-02 02:34:05 +08:00
linux-next/include/uapi/linux/dvb
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
..
audio.h UAPI: (Scripted) Disintegrate include/linux/dvb 2012-10-17 10:00:29 -03:00
ca.h media: dvb headers: make checkpatch happier 2017-09-05 07:10:24 -04:00
dmx.h media: dvb headers: make checkpatch happier 2017-09-05 07:10:24 -04:00
frontend.h media: dvb_frontend: fix return values for FE_SET_PROPERTY 2017-10-11 12:58:40 -04:00
net.h media: net.h: add kernel-doc and use it at Documentation/ 2017-09-05 06:22:42 -04:00
osd.h UAPI: (Scripted) Disintegrate include/linux/dvb 2012-10-17 10:00:29 -03:00
version.h [media] dvb: Add DVBv5 statistics properties 2013-01-23 19:06:33 -02:00
video.h [media] dvb: don't use 'time_t' in event ioctl 2017-06-20 11:27:01 -03:00