From: Johannes Berg Date: Tue, 1 Apr 2008 13:21:00 +0000 (+0200) Subject: mac80211: automatically free sta struct when insertion fails X-Git-Tag: v2.6.26-rc1~1138^2~243 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93e5deb1ae39b56f4743955e76c72251256f23c1;p=pandora-kernel.git mac80211: automatically free sta struct when insertion fails When STA structure insertion fails, it has been allocated but isn't really alive yet, it isn't reachable by any other code and also can't yet have much configured. This patch changes the code so that when the insertion fails, the resulting STA pointer is no longer valid because it is freed. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed