]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/wimax/stack.c
wimax: checking ERR_PTR vs null
[net-next-2.6.git] / net / wimax / stack.c
index 1ed65dbdab03df1bab0a008a7ca0277ce143bfdb..62b1a6662209b865f606e78a3f2bdfa2f54f1626 100644 (file)
@@ -315,7 +315,7 @@ void __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state)
                BUG();
        }
        __wimax_state_set(wimax_dev, new_state);
-       if (stch_skb)
+       if (!IS_ERR(stch_skb))
                wimax_gnl_re_state_change_send(wimax_dev, stch_skb, header);
 out:
        d_fnend(3, dev, "(wimax_dev %p new_state %u [old %u]) = void\n",