From: Roland Vossen Date: Mon, 8 Aug 2011 13:57:46 +0000 (+0200) Subject: staging: brcm80211: bugfix for len==0 parameter in 3 fullmac functions X-Git-Tag: v3.2-rc1~169^2^2~864^2~382 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c1599cfd6a736e09c29c772fbaf41250646ad42;p=pandora-kernel.git staging: brcm80211: bugfix for len==0 parameter in 3 fullmac functions Three functions use the same method to check incoming parameters. The 'len' parameter can be equal to 0 in case of a 'set' operation. Currently these functions return an error code under that condition, which is incorrect. The problem was introduced in recent patches in which asserts were removed from the fullmac. Despite this being a bug, my regression testing has not shown any problems. Reported-by: Dan Carpenter Signed-off-by: Roland Vossen Reviewed-by: Arend van Spriel Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed