Re: [PATCH] net: x25: remove null checks on arrays calling_ae and called_ae

From: David Miller
Date: Fri Sep 09 2016 - 21:15:45 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Thu, 8 Sep 2016 08:42:06 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> dtefacs.calling_ae and called_ae are both 20 element __u8 arrays and
> cannot be null and hence are redundant checks. Remove these.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Indeed, and if they were pointers they would be in userspace and would
need proper uaccess handling.

Applied to net-next, thanks.