summaryrefslogtreecommitdiff
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorOliver Hartkopp <socketcan@hartkopp.net>2015-01-05 17:40:15 (GMT)
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-01-15 15:57:59 (GMT)
commit9b1087aa5e86448fe6ad40a58964e35f3ba423d5 (patch)
tree8636f06d98c2e7c907e88ca91d1928ec9ea47279 /include/uapi/drm
parent870482a4190007bb8aed45c6ebcbfc03369241d2 (diff)
downloadlinux-9b1087aa5e86448fe6ad40a58964e35f3ba423d5.tar.xz
can: dev: fix crtlmode_supported check
When changing flags in the CAN drivers ctrlmode the provided new content has to be checked whether the bits are allowed to be changed. The bits that are to be changed are given as a bitfield in cm->mask. Therefore checking against cm->flags is wrong as the content can hold any kind of values. The iproute2 tool sets the bits in cm->mask and cm->flags depending on the detected command line options. To be robust against bogus user space applications additionally sanitize the provided flags with the provided mask. Cc: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/uapi/drm')
0 files changed, 0 insertions, 0 deletions