Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef7562b7 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

dpt_i2o: Fix up copy*user



Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0a53f169
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1918,6 +1918,10 @@ static int adpt_i2o_passthru(adpt_hba* pHba, u32 __user *arg)
		}
		size = size>>16;
		size *= 4;
		if (size > MAX_MESSAGE_SIZE) {
			rcode = EINVAL;
			goto cleanup;
		}
		/* Copy in the user's I2O command */
		if (copy_from_user (msg, user_msg, size)) {
			rcode = -EFAULT;