Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354146
b: refs/heads/master
c: 96a8d14
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jan 25, 2013
1 parent 3fd4b55 commit 20319b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 392c6ff87f568d573239b763855160d1f06114de
refs/heads/master: 96a8d14e875a017f9e9e71d93433414e9fb8863f
4 changes: 3 additions & 1 deletion trunk/drivers/staging/cxt1e1/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ do_del_chan (struct net_device * musycc_dev, void *data)
if (copy_from_user (&cp, data,
sizeof (struct sbecom_chan_param)))
return -EFAULT;
sprintf (buf, CHANNAME "%d", cp.channum);
if (cp.channum > 999)
return -EINVAL;
snprintf (buf, sizeof(buf), CHANNAME "%d", cp.channum);
if (!(dev = dev_get_by_name (&init_net, buf)))
return -ENOENT;
dev_put (dev);
Expand Down

0 comments on commit 20319b7

Please sign in to comment.