Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96221
b: refs/heads/master
c: 1b3aa7a
h: refs/heads/master
i:
  96219: 5420644
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed May 6, 2008
1 parent 16c5842 commit 4ff71b4
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 01935d7d2c544a5dfc8313f79ed164d45115aa33
refs/heads/master: 1b3aa7afb60d34867eea5e73ee943b2a026fc47c
4 changes: 2 additions & 2 deletions trunk/drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,11 +1894,11 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
u8 *fw_data;
struct ch_mem_range t;

if (!capable(CAP_NET_ADMIN))
if (!capable(CAP_SYS_RAWIO))
return -EPERM;
if (copy_from_user(&t, useraddr, sizeof(t)))
return -EFAULT;

/* Check t.len sanity ? */
fw_data = kmalloc(t.len, GFP_KERNEL);
if (!fw_data)
return -ENOMEM;
Expand Down

0 comments on commit 4ff71b4

Please sign in to comment.