]> granicus.if.org Git - procps-ng/commit
library: slab sort derefence after check
authorCraig Small <csmall@dropbear.xyz>
Sat, 14 May 2016 12:32:35 +0000 (22:32 +1000)
committerCraig Small <csmall@dropbear.xyz>
Sat, 14 May 2016 12:32:35 +0000 (22:32 +1000)
commit4f6b8c9c60e730858dfd1cc086f39ea783ae00c9
treeebc5878048ab6711f585f650a5fd38b198585c0f
parent2e6435a39dd8260462652b999c1bb45e15ae0d62
library: slab sort derefence after check

procps_slabnode_stacks_sort() would check if stacks was NULL
*after* the pointer was derefenced in the initialisation of
the variable p.

p is now assigned after the check.

References:
 Coverity #99160
proc/slab.c