Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9437
b: refs/heads/master
c: c3c4ed6
h: refs/heads/master
i:
  9435: 6b15d0d
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Sep 27, 2005
1 parent fb49ea7 commit 896ef1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f26dac32057baaf67d10b45c6b5277db862911d
refs/heads/master: c3c4ed652e8f2c348ebdd3f2e45664a0e238ee52
2 changes: 2 additions & 0 deletions trunk/net/rose/af_rose.c
Original file line number Diff line number Diff line change
Expand Up @@ -1481,12 +1481,14 @@ static int __init rose_proto_init(void)

if (rose_ndevs > 0x7FFFFFFF/sizeof(struct net_device *)) {
printk(KERN_ERR "ROSE: rose_proto_init - rose_ndevs parameter to large\n");
proto_unregister(&rose_proto);
return -1;
}

dev_rose = kmalloc(rose_ndevs * sizeof(struct net_device *), GFP_KERNEL);
if (dev_rose == NULL) {
printk(KERN_ERR "ROSE: rose_proto_init - unable to allocate device structure\n");
proto_unregister(&rose_proto);
return -1;
}

Expand Down

0 comments on commit 896ef1d

Please sign in to comment.