Re: [PATCH] net/irda: handle iriap_register_lsap() allocation failure

2016-08-14 Thread David Miller
From: Vegard Nossum Date: Fri, 12 Aug 2016 10:29:13 +0200 > If iriap_register_lsap() fails to allocate memory, self->lsap is > set to NULL. However, none of the callers handle the failure and > irlmp_connect_request() will happily dereference it: ... > The bug seems to have been around since for

[PATCH] net/irda: handle iriap_register_lsap() allocation failure

2016-08-12 Thread Vegard Nossum
If iriap_register_lsap() fails to allocate memory, self->lsap is set to NULL. However, none of the callers handle the failure and irlmp_connect_request() will happily dereference it: iriap_register_lsap: Unable to allocated LSAP! ===