summaryrefslogtreecommitdiffstats
path: root/lib/crc-t10dif.c
diff options
context:
space:
mode:
authorElias Vanderstuyft <elias.vds@gmail.com>2015-12-18 17:32:19 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-12-18 17:48:52 -0800
commitdaf6cd0c1829c48cba197bd87d57fc8bf3f65faa (patch)
treecfc0ce649b7a874b3964efc55b44c6c45d38b77c /lib/crc-t10dif.c
parentfbae10db094046dba1d59e1c2ee5140835045f14 (diff)
downloadlinux-daf6cd0c1829c48cba197bd87d57fc8bf3f65faa.tar.bz2
Input: uinput - sanity check on ff_effects_max and EV_FF
Currently the user can set ff_effects_max to zero with the EV_FF bit (and the FF_GAIN and/or FF_AUTOCENTER bits) set, in this case the uninitialized methods ff->set_gain and/or ff->set_autocenter can be dereferenced, resulting in a kernel oops. Check in uinput_create_device() and print a helpful message and return -EINVAL in case the check fails. Signed-off-by: Elias Vanderstuyft <elias.vds@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'lib/crc-t10dif.c')
0 files changed, 0 insertions, 0 deletions