Re: [PATCH 2/2] printk: return -EINVAL if the message len is biggerthan the buf size

From: Kay Sievers
Date: Sat Jun 16 2012 - 08:51:15 EST


On Sat, Jun 16, 2012 at 6:40 AM, Yuanhan Liu
<yuanhan.liu@xxxxxxxxxxxxxxx> wrote:
> 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.

Looks good to me.

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/