Commit ec7bdda2 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] sx memleak.

parent e792570d
......@@ -1739,8 +1739,10 @@ static int sx_fw_ioctl (struct inode *inode, struct file *filp,
if (copy_from_user(tmp, (char *)data + i,
(i + SX_CHUNK_SIZE >
nbytes) ? nbytes - i :
SX_CHUNK_SIZE))
SX_CHUNK_SIZE)) {
kfree (tmp);
return -EFAULT;
}
memcpy_toio ((char *) (board->base2 + offset + i), tmp,
(i+SX_CHUNK_SIZE>nbytes)?nbytes-i:SX_CHUNK_SIZE);
}
......
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