]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit38d22659803a033b1b66cd2624c33570c0dde77d
tree15a363c12bb76a8b0c1897dfce0e0b6d61a7f756
parent72d8b4fdbfb6192cec1ce25c46020fb48b62fa1e
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