aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-04-08 14:19:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 01:58:04 +0200
commitb5eed730bd3f216dd172d2d699686000f8cb9b38 (patch)
treed3ffe9b05c4eafa29383edbc6de003e0bcf52087 /scripts/gdb/linux/modules.py
parentstaging: sm750: remove incorrect __exit annotation (diff)
downloadwireguard-linux-b5eed730bd3f216dd172d2d699686000f8cb9b38.tar.xz
wireguard-linux-b5eed730bd3f216dd172d2d699686000f8cb9b38.zip
staging: rtl8712: freeing an ERR_PTR
If memdup_user() fails then "pparmbuf" is an error pointer and we can't pass it to kfree(). I changed the "goto _r871x_mp_ioctl_hdl_exit" to a direct return. I changed the earlier goto to a direct return as well for consistency and removed the "pparmbuf = NULL" initializer since it's no longer needed. Fixes: 45de432775d6 ('Staging: rtl8712: Use memdup_user() instead of copy_from_user()') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions