bcachefs: mount: fix null deref with null devname

- Fix null deref on mount when given a null device name.
 - Move the dev_name checks to return EINVAL when it is invalid.

Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Dan Robertson 2021-06-10 07:52:42 -04:00 • committed by Kent Overstreet
commit 044c8c9e05