Re: [PATCH] net/irda: fix NULL pointer dereference on memory allocation failure

From: David Miller
Date: Mon Jul 25 2016 - 14:25:21 EST


From: Vegard Nossum <vegard.nossum@xxxxxxxxxx>
Date: Sat, 23 Jul 2016 07:43:50 +0200

> I ran into this:
...
> The problem is that irda_open_tsap() can fail and leave self->tsap = NULL,
> and then irttp_connect_request() almost immediately dereferences it.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxxx>

Applied and queued up for -stable, thanks.