rocker: add a check for NULL in rocker_probe_ports()
Make sure kmalloc() succeeds. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Acked-by: NScott Feldman <sfeldma@gmail.com> Acked-by: NJiri Pirko <jiri@resnulli.us> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录