[PATCH] fm10k_main.c: fix missing return value check of alloc_skb()

2018-08-17 Thread Jiecheng Wu
Function fm10k_init_module() defined in drivers/net/ethernet/intel/fm10k/fm10k_main.c calls alloc_workqueue() to allocate memory for struct workqueue_struct which is dereferenced immediately. As alloc_workqueue() may return NULL on failure, this code piece may cause NULL pointer dereference

[PATCH] fm10k_main.c: fix missing return value check of alloc_skb()

2018-08-17 Thread Jiecheng Wu
Function fm10k_init_module() defined in drivers/net/ethernet/intel/fm10k/fm10k_main.c calls alloc_workqueue() to allocate memory for struct workqueue_struct which is dereferenced immediately. As alloc_workqueue() may return NULL on failure, this code piece may cause NULL pointer dereference

[PATCH] datapath.c: fix missing return value check of nla_nest_start()

2018-08-17 Thread Jiecheng Wu
Function queue_userspace_packet() defined in net/openvswitch/datapath.c calls nla_nest_start() to allocate memory for struct nlattr which is dereferenced immediately. As nla_nest_start() may return NULL on failure, this code piece may cause NULL pointer dereference bug. ---