Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14792
b: refs/heads/master
c: 50accc9
h: refs/heads/master
v: v3
  • Loading branch information
Mitchell Blank Jr authored and David S. Miller committed Nov 30, 2005
1 parent c9f4e59 commit b4d9937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e91a73568b19b4a8145fc6e05314d522ee35a0b1
refs/heads/master: 50accc9c428273501dd2a6295c84a533dd1fe645
2 changes: 1 addition & 1 deletion trunk/net/atm/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ int vcc_connect(struct socket *sock, int itf, short vpi, int vci)
vcc->qos.rxtp.traffic_class == ATM_ANYCLASS)
return -EINVAL;
if (likely(itf != ATM_ITF_ANY)) {
dev = atm_dev_lookup(itf);
dev = try_then_request_module(atm_dev_lookup(itf), "atm-device-%d", itf);
} else {
dev = NULL;
spin_lock(&atm_dev_lock);
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/atm/resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ int atm_dev_ioctl(unsigned int cmd, void __user *arg)
if (get_user(number, &sioc->number))
return -EFAULT;

if (!(dev = atm_dev_lookup(number)))
if (!(dev = try_then_request_module(atm_dev_lookup(number),
"atm-device-%d", number)))
return -ENODEV;

switch (cmd) {
Expand Down

0 comments on commit b4d9937

Please sign in to comment.