Re: [PATCH] mac80211: fix possible NULL pointer dereference

From: Johannes Berg
Date: Sun Mar 27 2011 - 05:17:48 EST


On Sat, 2011-03-26 at 18:58 +0100, Mariusz Kozlowski wrote:
> This patch moves 'key' dereference after BUG_ON(!key) so that when key is NULL
> we will see proper trace instead of oops.
>
> Signed-off-by: Mariusz Kozlowski <mk@xxxxxxxxxxxx>

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

I guess, not that it matters much since it's extremely unlikely somebody
will attemt to misuse this function :-)

johannes


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/