summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-04-22 11:50:10 +0200
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>2010-05-11 23:09:10 +0200
commitd3e56c0ad8a2dab7ffd6179b64f00702149e5c9a (patch)
treea8c5343a77cbc2b92978cbdaf30e4425657f6396 /net
parentwimax/i2400m: USB specific TX queue's minimum buffer room required for new me... (diff)
downloadlinux-d3e56c0ad8a2dab7ffd6179b64f00702149e5c9a.tar.xz
linux-d3e56c0ad8a2dab7ffd6179b64f00702149e5c9a.zip
wimax: checking ERR_PTR vs null
stch_skb is allocated with wimax_gnl_re_state_change_alloc(). That function returns ERR_PTRs on failure and doesn't return NULL. Signed-off-by: Dan Carpenter <error27@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/wimax/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wimax/stack.c b/net/wimax/stack.c
index 1ed65dbdab03..62b1a6662209 100644
--- a/net/wimax/stack.c
+++ b/net/wimax/stack.c
@@ -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",