Skip to content
Commit b56a39ac authored by Yuanhan Liu's avatar Yuanhan Liu Committed by Greg Kroah-Hartman
Browse files

printk: return -EINVAL if the message len is bigger than the buf size



Just like what devkmsg_read() does, return -EINVAL if the message len is
bigger than the buf size, or it will trigger a segfault error.

Acked-by: default avatarKay Sievers <kay@vrfy.org>
Acked-by: default avatarFengguang Wu <wfg@linux.intel.com>
Signed-off-by: default avatarYuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a77a5a0
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