]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: ozwpan: prevent a couple of underflows
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Jun 2015 12:20:25 +0000 (15:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 20:38:56 +0000 (13:38 -0700)
commitba470f7c0e9f4a71a915a48392e69f56ce7edbf9
tree7334b74d05c627384703b2eb03e9301d6ec5adf2
parentc938699ebb92918afe66776bb6d69277aea86507
staging: ozwpan: prevent a couple of underflows

The underflow in OZ_DATA_F_ISOC_FIXED seems not harmful, but this patch
is a clean up and makes my static checker a bit happier.

The underflow in OZ_VENDOR_CLASS_RSP seems like it could result in
memory corruption.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozusbsvc1.c