projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: ipv4: Move ip_options_fragment() out of loop
[linux-2.6-microblaze.git]
/
net
/
6lowpan
/
debugfs.c
diff --git
a/net/6lowpan/debugfs.c
b/net/6lowpan/debugfs.c
index
1c140af
..
600b956
100644
(file)
--- a/
net/6lowpan/debugfs.c
+++ b/
net/6lowpan/debugfs.c
@@
-170,7
+170,8
@@
static void lowpan_dev_debugfs_ctx_init(struct net_device *dev,
struct dentry *root;
char buf[32];
- WARN_ON_ONCE(id > LOWPAN_IPHC_CTX_TABLE_SIZE);
+ if (WARN_ON_ONCE(id >= LOWPAN_IPHC_CTX_TABLE_SIZE))
+ return;
sprintf(buf, "%d", id);