ext4: check to make make sure bd_dev is set before dereferencing it
authorTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jul 2010 15:56:08 +0000 (11:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jul 2010 15:56:08 +0000 (11:56 -0400)
commitf613dfcb3345dacb8cf99b7bb359acc1c18a1157
treea2e437f59acbd87d0d2a63c7bd20b016a844f5cb
parentcc937db74bd5fe75f4cfebbfc4a04c1da10f0695
ext4: check to make make sure bd_dev is set before dereferencing it

There are some drivers which may not set bdev->bd_dev.  So make sure
it is non-NULL before dereferencing it.

Google-Bug-Id: 1773557

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c