From: Yuanhan Liu Date: Sat, 16 Jun 2012 04:40:55 +0000 (+0800) Subject: printk: return -EINVAL if the message len is bigger than the buf size X-Git-Tag: v3.5-rc4~17^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b56a39ac263e5b8cafedd551a49c2105e68b98c2;p=pandora-kernel.git 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: Kay Sievers Acked-by: Fengguang Wu Signed-off-by: Yuanhan Liu Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed