summaryrefslogtreecommitdiff
path: root/drivers/pcmcia/vrc4173_cardu.h
diff options
context:
space:
mode:
authorOliver Hartkopp <socketcan@hartkopp.net>2015-01-05 18:40:15 +0100
committerBen Hutchings <ben@decadent.org.uk>2015-02-20 00:49:37 +0000
commit0d189b4451f424bdb4296a0c791b9cd731bc317e (patch)
tree247787737cb3e0c019a2a6151900d29a1511f55e /drivers/pcmcia/vrc4173_cardu.h
parent3d8d613420a42dea7c12b990af3e81b98a31e809 (diff)
can: dev: fix crtlmode_supported check
commit 9b1087aa5e86448fe6ad40a58964e35f3ba423d5 upstream. 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> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/pcmcia/vrc4173_cardu.h')
0 files changed, 0 insertions, 0 deletions