Thread (2 messages) flat view 2 messages, 2 authors, 2021-11-15

Re: [PATCH] cfg80211: delete redundant free code

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-11-15 09:25:00
Also in: linux-wireless, lkml

On Mon, 2021-11-15 at 17:21 +0800, liuguoqiang wrote:
When kzalloc failed and rdev->sacn_req or rdev->scan_msg is null, pass a
null pointer to kfree is redundant, delete it and return directly.
Arguably then we should not set creq=NULL at the beginning?

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help