53a9ba132c
In function ark_config_device(), there are several malloc without null point check. Fix it by adding null point check. Signed-off-by: Yong Wang <wang.yong19@zte.com.cn> Acked-by: Ed Czeck <ed.czeck@atomicrules.com>