Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192564
b: refs/heads/master
c: b1ffdc8
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Jiri Kosina committed Apr 26, 2010
1 parent 48abbb9 commit adc0479
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: a33f32244d8550da8b4a26e277ce07d5c6d158b5
refs/heads/master: b1ffdc8f3d8c8913388ca97dfdf064c87940dd72
16 changes: 6 additions & 10 deletions trunk/drivers/message/i2o/i2o_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,22 +314,22 @@ static int i2o_cfg_swul(unsigned long arg)
int ret = 0;

if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer)))
goto return_fault;
return -EFAULT;

if (get_user(swlen, kxfer.swlen) < 0)
goto return_fault;
return -EFAULT;

if (get_user(maxfrag, kxfer.maxfrag) < 0)
goto return_fault;
return -EFAULT;

if (get_user(curfrag, kxfer.curfrag) < 0)
goto return_fault;
return -EFAULT;

if (curfrag == maxfrag)
fragsize = swlen - (maxfrag - 1) * 8192;

if (!kxfer.buf)
goto return_fault;
return -EFAULT;

c = i2o_find_iop(kxfer.iop);
if (!c)
Expand Down Expand Up @@ -373,12 +373,8 @@ static int i2o_cfg_swul(unsigned long arg)

i2o_dma_free(&c->pdev->dev, &buffer);

return_ret:
return ret;
return_fault:
ret = -EFAULT;
goto return_ret;
};
}

static int i2o_cfg_swdel(unsigned long arg)
{
Expand Down

0 comments on commit adc0479

Please sign in to comment.