staging: rtl8188eu: memory leak in rtw_free_cmd_obj()
We were fixing checkpatch.pl warnings and accidentally reversed this
condition.
Fixes: 5b29aaaa1e
("staging: rtl8188eu: removes comparison to null")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
397fcd12e4
commit
011ce71609
|
@ -132,7 +132,7 @@ void rtw_free_cmd_obj(struct cmd_obj *pcmd)
|
|||
kfree(pcmd->parmbuf);
|
||||
}
|
||||
|
||||
if (!pcmd->rsp) {
|
||||
if (pcmd->rsp) {
|
||||
if (pcmd->rspsz != 0) {
|
||||
/* free rsp in cmd_obj */
|
||||
kfree(pcmd->rsp);
|
||||
|
|
Loading…
Reference in New Issue