commit | 8defffb20854500825162d336bdd183d2d218cf9 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Wed Sep 07 17:23:09 2016 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Sep 12 11:18:15 2016 +0200 |
tree | 131bd2259608db5a35aa6de9f2e634f5e803445c | |
parent | f5dc9399c07ee141924bcdccfeeacd7597a44cfe [diff] |
staging: ks7010: avoid dereferencing packet if it is null Updating tx_bytes from packet->len if packet is null will cause a null pointer dereference, so only update tx_bytes if it packet is not null. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>