Skip to content
Commit 0d838347 authored by Lenny Szubowicz's avatar Lenny Szubowicz Committed by Tony Luck
Browse files

efivars: If pstore_register fails, free unneeded pstore buffer



This is patch 3/3 of a patch set that cleans up pstore_register failure paths.

If efivars fails to register with pstore, there is no point to keeping
the 4 KB buffer around. It's only used by the pstore read/write routines.

Signed-off-by: default avatarLenny Szubowicz <lszubowi@redhat.com>
Reported-by: default avatarNaotaka Hamaguchi <n.hamaguchi@jp.fujitsu.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 74fd6c6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment