Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130979
b: refs/heads/master
c: 736d545
h: refs/heads/master
i:
  130977: 7c3537f
  130975: aa60ef0
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Feb 5, 2009
1 parent 2d638b4 commit d38311d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: fe86175bce50bc3d65ff09c287fed955c4da1eb3
refs/heads/master: 736d54533aedbcbde8cfb2f9ccd542595db4d78d
8 changes: 5 additions & 3 deletions trunk/drivers/char/sx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1713,8 +1713,8 @@ static long sx_fw_ioctl(struct file *filp, unsigned int cmd,
for (i = 0; i < SX_NBOARDS; i++)
sx_dprintk(SX_DEBUG_FIRMWARE, "<%x> ", boards[i].flags);
sx_dprintk(SX_DEBUG_FIRMWARE, "\n");
unlock_kernel();
return -EIO;
rc = -EIO;
goto out;
}

switch (cmd) {
Expand Down Expand Up @@ -1747,7 +1747,8 @@ static long sx_fw_ioctl(struct file *filp, unsigned int cmd,
break;
case SXIO_DO_RAMTEST:
if (sx_initialized) /* Already initialized: better not ramtest the board. */
return -EPERM;
rc = -EPERM;
break;
if (IS_SX_BOARD(board)) {
rc = do_memtest(board, 0, 0x7000);
if (!rc)
Expand Down Expand Up @@ -1844,6 +1845,7 @@ static long sx_fw_ioctl(struct file *filp, unsigned int cmd,
rc = -ENOTTY;
break;
}
out:
unlock_kernel();
func_exit();
return rc;
Expand Down

0 comments on commit d38311d

Please sign in to comment.