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)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:21:01 +0000 (17:21 -0700)
commit8321cf2596d283821acc466377c2b85bcd3422b7
tree26b0bb5da4b57aa099d2834b72740205e77b8fd8
parentc1895442be01c58449e3bf9272f22062a670e08f
fs: btrfs: volumes.c: Fix for possible null pointer dereference

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>
fs/btrfs/volumes.c