diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-10-19 14:19:01 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-04 14:48:51 -0700 |
| commit | 4f8e29e7547be52fa24b0cdc7cf69baac9d82328 (patch) | |
| tree | 49815b19ce5d9e4f84467039b69b4effd0b38cdb /tools/perf/scripts/python/bin | |
| parent | 01c8261c5ec46183e14dec7df335ee88bb037e30 (diff) | |
misc: mic/scif: fix wrap around tests
commit 7b64dbf849abdd7e769820e25120758f956a7f13 upstream.
Signed integer overflow is undefined. Also I added a check for
"(offset < 0)" in scif_unregister() because that makes it match the
other conditions and because I didn't want to subtract a negative.
Fixes: ba612aa8b487 ('misc: mic: SCIF memory registration and unregistration')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
