Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datapath: Check for null pointer return from nla_nest_start_noflag
upstream commit: commit ca96534630e2edfd73121c487c957b17eca3b7d7 Author: Colin Ian King <[email protected]> Date: Wed May 1 14:41:58 2019 +0100 openvswitch: check for null pointer return from nla_nest_start_noflag The call to nla_nest_start_noflag can return null in the unlikely event that nla_put returns -EMSGSIZE. Check for this condition to avoid a null pointer dereference on pointer nla_reply. Addresses-Coverity: ("Dereference null return value") Fixes: 11efd5cb04a1 ("openvswitch: Support conntrack zone limit") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Yi-Hung Wei <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Yi-Hung Wei <[email protected]> Reviewed-by: Yifeng Sun <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information