]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: mISDN: Fix potential NULL pointer dereference of kzalloc
authorAditya Pakki <pakki001@umn.edu>
Sat, 2 Mar 2019 21:20:43 +0000 (15:20 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 18:54:48 +0000 (10:54 -0800)
commit1295c468cdbf49cf9dfd6b95fcbc27fbaafee08d
tree15a363c12bb76a8b0c1897dfce0e0b6d61a7f756
parent1f7b2bffc5be2f55513c196baf3caa0737f8b1bd
isdn: mISDN: Fix potential NULL pointer dereference of kzalloc

Allocating memory via kzalloc for phi may fail and causes a
NULL pointer dereference. This patch avoids such a scenario.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcsusb.c