summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBenjamin Marzinski <bmarzins@redhat.com>2016-12-04 23:26:38 -0600
committerMike Snitzer <snitzer@redhat.com>2016-12-08 14:13:15 -0500
commitb446396b7482938c859bfaa42320026d158616ae (patch)
tree214d463d2ca567c8969a70b1255edc1c15b61947 /tools
parent0c79ce0b75304fbbe42282a7d40af4367e31efc6 (diff)
dm space map: always set ev if sm_ll_mutate() succeeds
If no block was allocated or freed, sm_ll_mutate() wasn't setting *ev, leaving the variable unitialized. sm_ll_insert(), sm_disk_inc_block(), and sm_disk_new_block() all check ev to see if there was an allocation event in sm_ll_mutate(), possibly reading unitialized data. If no allocation event occured, sm_ll_mutate() should set *ev to SM_NONE. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Acked-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions