chiark / gitweb /
bootchart: oom-check correct variable
authorAndreas Henriksson <andreas@fatal.se>
Tue, 16 Sep 2014 17:40:25 +0000 (19:40 +0200)
committerTom Gundersen <teg@jklm.no>
Tue, 16 Sep 2014 18:25:30 +0000 (20:25 +0200)
commitd498a616075ebfd8025d66c4c4f725d24eb3aca3
tree4867446728142ef07be075272be94eb07c1de745
parente10f3c431a3bc1a94fbe9d2a14d3025550f9672e
bootchart: oom-check correct variable

Coverity warned that we have already dereferenced ps->sample before
null-checking it. I suspect that's not really the issue and that
the check is checking the wrong variable.
Likely the oom-check should be on the just allocated ps->sample->next.

Found by coverity. Fixes: CID#1237765
src/bootchart/store.c