]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm mpath: fix potential NULL pointer in feature arg processing
authorMike Snitzer <snitzer@redhat.com>
Tue, 2 Aug 2011 11:32:00 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 17:36:10 +0000 (10:36 -0700)
commit1120616a78cceff1b4a417c61b94da35edf09bdf
treedc74dac2234db4782b7d2e8a864362cc9f077b51
parent87c6272e4096149ddee39b6e923c87bbf5bcdd5a
dm mpath: fix potential NULL pointer in feature arg processing

commit 286f367dad40beb3234a18c17391d03ba939a7f3 upstream.

Avoid dereferencing a NULL pointer if the number of feature arguments
supplied is fewer than indicated.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-mpath.c