rocker: add a check for NULL in rocker_probe_ports()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Feb 2015 13:35:32 +0000 (16:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 20:53:43 +0000 (15:53 -0500)
commite65ad3be869b45f90a401d8ce4d4e7381c99ceb0
tree78ccf9b93c8575e8e15ec9265da7f6baccb63915
parentf01aa633e040e52603b8defd2263691d15b86cb0
rocker: add a check for NULL in rocker_probe_ports()

Make sure kmalloc() succeeds.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c