From: Dan Carpenter Date: Sat, 9 Oct 2010 11:54:06 +0000 (+0200) Subject: Staging: brcm80211: make interface name buffer smaller X-Git-Tag: v2.6.37-rc1~60^2~3^2~184 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf6baac775f2e3fb61f88dcaa71e44fb34b6906;p=pandora-kernel.git Staging: brcm80211: make interface name buffer smaller In the original code the interface name was IFNAMSIZ + 1, but that caused problems in dhd_ifname2idx() which does: strncmp(dhd->iflist[i]->name, name, IFNAMSIZ) The wl_event_msg_t struct can only store 16 character names as well. And thirdly there is a potential buffer overflow in dhd_op_if() because if->net->name is IFNAMSIZ and we do: strcpy(ifp->net->name, ifp->name); Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed