diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-09-09 11:58:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-09 14:33:27 -0700 |
commit | 1f4f554a72be0d8c164c2f5bc6ba939a1c624fb4 (patch) | |
tree | 4805767bc7adc50a31c1469ab62b2dd1085f1be3 /block/blk-timeout.c | |
parent | ad9a19d003703ae06a6e8efc64cf26a939d9e84d (diff) | |
download | lwn-1f4f554a72be0d8c164c2f5bc6ba939a1c624fb4.tar.gz lwn-1f4f554a72be0d8c164c2f5bc6ba939a1c624fb4.zip |
net: qualcomm: rmnet: Fix a double free
There is a typo here so we accidentally free "skb" instead of "skbn".
It leads to a double free and a leak. After discussing with Subash,
it's better to just move the check before the allocation and avoid the
need to free.
Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-timeout.c')
0 files changed, 0 insertions, 0 deletions