diff options
author | 2015-03-13 11:08:08 +0100 | |
---|---|---|
committer | 2015-03-13 10:41:05 -0500 | |
commit | fbdecad99c3f37346ed868fec0c3a9c2809f78e9 (patch) | |
tree | 343c7f3ec797185c7a734f0968e65746db18b270 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: gadget: printer: use after free in gprinter_alloc_inst() (diff) | |
download | linux-dev-fbdecad99c3f37346ed868fec0c3a9c2809f78e9.tar.xz linux-dev-fbdecad99c3f37346ed868fec0c3a9c2809f78e9.zip |
usb: gadget: f_printer: use non-zero flag for bitwise and
USB_DIR_OUT happens to be zero, so the result of bitwise and is always 0.
Consequently, break will never happen in the SOFT_RESET case.
This patch uses a compatible condition with a non-zero USB_DIR_IN,
which might or might not evaluate to zero.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions