Module Name: src Committed By: maxv Date: Tue Jan 16 14:23:15 UTC 2018
Modified Files: src/sys/dev/ic: bwfm.c Log Message: Mmh refix previous, we also need to make sure frm[1] is there. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/bwfm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/bwfm.c diff -u src/sys/dev/ic/bwfm.c:1.8 src/sys/dev/ic/bwfm.c:1.9 --- src/sys/dev/ic/bwfm.c:1.8 Tue Jan 16 13:48:21 2018 +++ src/sys/dev/ic/bwfm.c Tue Jan 16 14:23:15 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: bwfm.c,v 1.8 2018/01/16 13:48:21 maxv Exp $ */ +/* $NetBSD: bwfm.c,v 1.9 2018/01/16 14:23:15 maxv Exp $ */ /* $OpenBSD: bwfm.c,v 1.5 2017/10/16 22:27:16 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation @@ -1729,6 +1729,8 @@ bwfm_scan_node(struct bwfm_softc *sc, st scan.wpa = frm; break; } + if (frm + 1 >= efrm) + break; } if (ic->ic_flags & IEEE80211_F_SCAN)