Commit b2dbffab authored by Robert T. Johnson's avatar Robert T. Johnson Committed by Linus Torvalds

[PATCH] drivers/char/ipmi/ipmi_devintf.c: user/kernel pointer typo

Judging from context, I think there's a misplaced "&" in this code that can
cause stack overflows and other nasty problems.  Perhaps it's left over
from when msgdata was an array instead of a pointer?
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 309018ba
......@@ -199,7 +199,7 @@ static int handle_send_req(ipmi_user_t user,
goto out;
}
if (copy_from_user(&msgdata,
if (copy_from_user(msgdata,
req->msg.data,
req->msg.data_len))
{
......
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