1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00
Jonathan Earl Brassow 1456c3b298 Fix possible NULL pointer dereferences when updating mirror log.
'_lv_update_log_type' takes a lvconvert_params argument so that it can pass
down the user's preference of 'region_size' and allocation_policy.  When
'mirror_remove_missing' was introduced (commit ID
95986e42a18ca98c9b1d777346978b7297c85558) it didn't make sense to pass down
user preferences - so NULL was given instead.  While it may never happen in
practice, static analysis reveals that this argument could be dereferenced.
So, if the user preferences were not passed in, glean the necessary fields
from what is already set in the LV.

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>

(Not updating WHATSNEW for this simple clean-up.)
2012-02-13 18:36:55 +00:00
..
2012-02-01 01:54:20 +00:00
2008-01-30 14:00:02 +00:00
2012-02-08 11:36:18 +00:00
2008-01-30 14:00:02 +00:00
2012-02-08 10:56:17 +00:00
2012-02-13 11:03:59 +00:00
2011-08-10 20:25:29 +00:00
2011-12-08 18:06:33 +00:00
2011-08-10 20:25:29 +00:00
2011-02-18 14:47:28 +00:00
2012-01-05 15:38:18 +00:00
2011-02-18 14:47:28 +00:00
2010-07-27 20:05:29 +00:00
2012-02-13 11:03:59 +00:00
2011-08-10 20:25:29 +00:00
2011-08-10 20:25:29 +00:00
2011-08-10 20:25:29 +00:00
2012-02-08 11:41:18 +00:00