Commit a27194de authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sn: Small check for invalid node in shub ioctl function

From: Pat Gefre <pfg@sgi.com>

Small check for invalid node in shub ioctl function
parent e547722d
......@@ -166,6 +166,8 @@ shubstats_ioctl(struct inode *inode, struct file *file,
int nasid;
cnode = (cnodeid_t)file->f_dentry->d_fsdata;
if (cnode < 0 || cnode >= numnodes)
return -ENODEV;
switch (cmd) {
case SNDRV_SHUB_CONFIGURE:
......
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