From: Johannes Berg Date: Mon, 6 Jan 2014 15:02:34 +0000 (+0100) Subject: mac80211: fix memory leak in register_hw() error path X-Git-Tag: v3.14-rc1~94^2~113^2^2~36^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b0ec94f9cfdcd10f6eb4df75fba9404c72fea4d;p=pandora-kernel.git mac80211: fix memory leak in register_hw() error path Move the internal scan request allocation below the last sanity check in ieee80211_register_hw() to avoid leaking memory if the sanity check actually triggers. Reported-by: ZHAO Gang Signed-off-by: Johannes Berg --- Reading git-diff-tree failed