Fwd: New Defects reported by Coverity Scan for ubuntu-xenial-kernel

Colin Ian King colin.king at canonical.com
Tue Jan 23 18:13:58 UTC 2018


CoverityScan picked this bpf issue in Xenial, anyone care to see if this
needs fixing?

Colin

-------- Forwarded Message --------
Subject: New Defects reported by Coverity Scan for ubuntu-xenial-kernel
Date: Tue, 23 Jan 2018 18:10:19 +0000 (UTC)
From: scan-admin at coverity.com
To: colin.king at canonical.com


Hi,

Please find the latest report on new defect(s) introduced to
ubuntu-xenial-kernel found with Coverity Scan.

1 new defect(s) introduced to ubuntu-xenial-kernel found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan	
Showing 1 of 1 defect(s)


** CID 1464330:  Uninitialized variables  (MISSING_RETURN)
/arch/x86/net/bpf_jit_comp.c: 1088 in bpf_int_jit_compile()


________________________________________________________________________________________________________
*** CID 1464330:  Uninitialized variables  (MISSING_RETURN)
/arch/x86/net/bpf_jit_comp.c: 1088 in bpf_int_jit_compile()
1082     	int i;
1083     1084     	if (!bpf_jit_enable)
1085     		return prog;
1086     1087     	if (!prog || !prog->len)
>>>     CID 1464330:  Uninitialized variables  (MISSING_RETURN)
>>>     Arriving at the end of a function without returning a value.
1088     		return;
1089     1090     	addrs = kmalloc(prog->len * sizeof(*addrs), GFP_KERNEL);
1091     	if (!addrs)
1092     		return prog;
1093






More information about the kernel-team mailing list