blob: 8ea0f04883109f31b6c7c00ce4a6e36695e52ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- drivers/net/eql.c.ori 2004-07-22 12:46:56.103576048 +0200
+++ drivers/net/eql.c 2004-07-22 12:46:59.068125368 +0200
@@ -497,6 +497,8 @@
slave_dev = dev_get_by_name(sc.slave_name);
ret = -EINVAL;
+ if (!slave_dev)
+ return ret;
spin_lock_bh(&eql->queue.lock);
if (eql_is_slave(slave_dev)) {
@@ -531,6 +533,8 @@
slave_dev = dev_get_by_name(sc.slave_name);
ret = -EINVAL;
+ if (!slave_dev)
+ return ret;
spin_lock_bh(&eql->queue.lock);
if (eql_is_slave(slave_dev)) {
|