Re: [PATCH 3/3] serial: crisv10: fix invalid user-pointer check

From: Jesper Nilsson
Date: Tue Nov 08 2016 - 07:51:57 EST


On Tue, Nov 08, 2016 at 01:24:55PM +0100, Johan Hovold wrote:
> Drop invalid user-pointer check from TIOCGSERIAL handler.
>
> A NULL-pointer can be valid in user space and copy_to_user() takes care
> of sanity checking.
>
> Cc: Mikael Starvik <starvik@xxxxxxxx>

Acked-by: Jesper Nilsson <jesper.nilsson@xxxxxxxx>

> Cc: linux-cris-kernel@xxxxxxxx
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@xxxxxxxx