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]);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to