aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorDaniel Mentz <[email protected]>2017-08-02 23:42:17 -0400
committerMauro Carvalho Chehab <[email protected]>2017-08-09 10:36:44 -0400
commit9c7ba1d7634cef490b85bc64c4091ff004821bfd (patch)
tree6e467b252bf0553fec5f951552233a4b5478f803 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent025a26fa14f8fd55d50ab284a30c016a5be953d0 (diff)
media: v4l2-compat-ioctl32: Fix timespec conversion
Certain syscalls like recvmmsg support 64 bit timespec values for the X32 ABI. The helper function compat_put_timespec converts a timespec value to a 32 bit or 64 bit value depending on what ABI is used. The v4l2 compat layer, however, is not designed to support 64 bit timespec values and always uses 32 bit values. Hence, compat_put_timespec must not be used. Without this patch, user space will be provided with bad timestamp values from the VIDIOC_DQEVENT ioctl. Also, fields of the struct v4l2_event32 that come immediately after timestamp get overwritten, namely the field named id. Fixes: 81993e81a994 ("compat: Get rid of (get|put)_compat_time(val|spec)") Cc: [email protected] Cc: H. Peter Anvin <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Tiffany Lin <[email protected]> Cc: Ricardo Ribalda Delgado <[email protected]> Cc: Sakari Ailus <[email protected]> Signed-off-by: Daniel Mentz <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions