diff options
Diffstat (limited to 'recipes-kernel/linux/files/colibri-t30/bcm4329_warning.patch~')
-rw-r--r-- | recipes-kernel/linux/files/colibri-t30/bcm4329_warning.patch~ | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/colibri-t30/bcm4329_warning.patch~ b/recipes-kernel/linux/files/colibri-t30/bcm4329_warning.patch~ new file mode 100644 index 0000000..196fd95 --- /dev/null +++ b/recipes-kernel/linux/files/colibri-t30/bcm4329_warning.patch~ @@ -0,0 +1,16 @@ +--- kernel/drivers/net/wireless/bcm4329/dhd_linux.c.orig 2011-12-21 19:54:24.884526348 +0100 ++++ kernel/drivers/net/wireless/bcm4329/dhd_linux.c 2011-12-21 18:55:18.974476355 +0100 +@@ -1904,6 +1904,13 @@ dhd_open(struct net_device *net) + ifidx = dhd_net2idx(dhd, net); + DHD_TRACE(("%s: ifidx %d\n", __FUNCTION__, ifidx)); + ++//max ++ if (ifidx < 0 || ifidx >= DHD_MAX_IFS) { ++ DHD_ERROR(("%s: Error: error ifidx out of range\n", __FUNCTION__)); ++ return -1; ++ } ++//end max ++ + if ((dhd->iflist[ifidx]) && (dhd->iflist[ifidx]->state == WLC_E_IF_DEL)) { + DHD_ERROR(("%s: Error: called when IF already deleted\n", __FUNCTION__)); + return -1; |