]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ibmvnic: Fix unchecked return codes of memory allocations
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 7 Jun 2019 21:03:55 +0000 (16:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 02:51:28 +0000 (19:51 -0700)
commit7c940b1a5291e5069d561f5b8f0e51db6b7a259a
tree1b7a2b892939b819e6962ef0784e348f76618094
parentbe32a24372cf162e825332da1a7ccef058d4f20b
ibmvnic: Fix unchecked return codes of memory allocations

The return values for these memory allocations are unchecked,
which may cause an oops if the driver does not handle them after
a failure. Fix by checking the function's return code.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c