diff options
author | Mitchell Blank Jr <mitch@sfgoth.com> | 2005-11-29 16:15:18 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-29 16:15:18 -0800 |
commit | 50accc9c428273501dd2a6295c84a533dd1fe645 (patch) | |
tree | 54a94b2c84b3a7af78887383b4c828e0a4953fe1 /net/atm/resources.c | |
parent | e91a73568b19b4a8145fc6e05314d522ee35a0b1 (diff) | |
download | op-kernel-dev-50accc9c428273501dd2a6295c84a533dd1fe645.zip op-kernel-dev-50accc9c428273501dd2a6295c84a533dd1fe645.tar.gz |
[ATM]: attempt to autoload atm drivers
From: Mitchell Blank Jr <mitch@sfgoth.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/resources.c')
-rw-r--r-- | net/atm/resources.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/atm/resources.c b/net/atm/resources.c index 415d261..35f3ceb 100644 --- a/net/atm/resources.c +++ b/net/atm/resources.c @@ -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) { |