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

2016-07-25 Thread David Miller
From: Vegard Nossum 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: sta...@vger.kernel.org >

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

2016-07-22 Thread Vegard Nossum
I ran into this: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN CPU: 2 PID: 2012 Comm: trinity-c3 Not tainted 4.7.0-rc7+ #19 Hardware name: QEMU Standard PC (i440FX +