Commit 0908cab4 authored by Jeff Garzik's avatar Jeff Garzik

Merge pobox.com:/spare/repo/netdev-2.6/misc

into pobox.com:/spare/repo/net-drivers-2.6
parents 80124602 1c880537
......@@ -499,6 +499,8 @@ static int eql_g_slave_cfg(struct net_device *dev, slave_config_t __user *scp)
return -ENODEV;
ret = -EINVAL;
if (!slave_dev)
return ret;
spin_lock_bh(&eql->queue.lock);
if (eql_is_slave(slave_dev)) {
......@@ -534,6 +536,8 @@ static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *scp)
return -ENODEV;
ret = -EINVAL;
if (!slave_dev)
return ret;
eql = dev->priv;
spin_lock_bh(&eql->queue.lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment