svn commit: r239319 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Thu Aug 16 00:53:24 UTC 2012
Author: adrian
Date: Thu Aug 16 00:53:23 2012
New Revision: 239319
URL: http://svn.freebsd.org/changeset/base/239319
Log:
Fix an incorrect comparison.
PR: kern/170098
Modified:
head/sys/net80211/ieee80211_node.c
Modified: head/sys/net80211/ieee80211_node.c
==============================================================================
--- head/sys/net80211/ieee80211_node.c Thu Aug 16 00:51:50 2012 (r239318)
+++ head/sys/net80211/ieee80211_node.c Thu Aug 16 00:53:23 2012 (r239319)
@@ -2242,7 +2242,7 @@ ieee80211_iterate_nodes(struct ieee80211
ieee80211_iter_func *f, void *arg)
{
struct ieee80211_node **ni_arr;
- unsigned long size;
+ size_t size;
int i;
uint16_t max_aid;
@@ -2260,13 +2260,12 @@ ieee80211_iterate_nodes(struct ieee80211
* the table; just skip to the end and free the
* temporary memory.
*/
- if (!ieee80211_iterate_nt(nt, ni_arr, max_aid))
+ if (ieee80211_iterate_nt(nt, ni_arr, max_aid) != 0)
goto done;
for (i = 0; i < max_aid; i++) {
if (ni_arr[i] == NULL) /* end of the list */
break;
-
(*f)(arg, ni_arr[i]);
/* ieee80211_free_node() locks by itself */
ieee80211_free_node(ni_arr[i]);
More information about the svn-src-all
mailing list