diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2016-12-04 23:26:38 -0600 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-12-08 14:13:15 -0500 |
commit | b446396b7482938c859bfaa42320026d158616ae (patch) | |
tree | 214d463d2ca567c8969a70b1255edc1c15b61947 /lib/test_printf.c | |
parent | 0c79ce0b75304fbbe42282a7d40af4367e31efc6 (diff) | |
download | op-kernel-dev-b446396b7482938c859bfaa42320026d158616ae.zip op-kernel-dev-b446396b7482938c859bfaa42320026d158616ae.tar.gz |
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 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions