pstore: gracefully handle NULL pstore_info functions
authorKees Cook <keescook@chromium.org>
Fri, 18 Nov 2011 21:49:00 +0000 (13:49 -0800)
committerTony Luck <tony.luck@intel.com>
Fri, 18 Nov 2011 21:49:00 +0000 (13:49 -0800)
commit2174f6df7891fa331800beb72634c969f017900b
treef9253298863844903b0ed76c7e9ae1f663b1a9d3
parent3d6d8d20ec4fd3b256632edb373a9c504724b8a9
pstore: gracefully handle NULL pstore_info functions

If a pstore backend doesn't want to support various portions of the
pstore interface, it can just leave those functions NULL instead of
creating no-op stubs.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/inode.c
fs/pstore/platform.c