fs: btrfs: volumes.c: Fix for possible null pointer dereference
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Thu, 22 May 2014 20:43:43 +0000 (22:43 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 2 Jul 2014 10:06:39 +0000 (12:06 +0200)
commitb01e4806671d4b756fb35285b08ba140da41ffc8
tree6b6745cd0e19bb3c2acd18264e22573db6fcbeb5
parent2f4f6fcff97f05917b75ecfaa7a5903f1ae089d8
fs: btrfs: volumes.c: Fix for possible null pointer dereference

commit 8321cf2596d283821acc466377c2b85bcd3422b7 upstream.

There is otherwise a risk of a possible null pointer dereference.

Was largely found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/btrfs/volumes.c