]> git.baikalelectronics.ru Git - kernel.git/commit
efivars: If pstore_register fails, free unneeded pstore buffer
authorLenny Szubowicz <lszubowi@redhat.com>
Fri, 28 Jun 2013 20:14:11 +0000 (16:14 -0400)
committerTony Luck <tony.luck@intel.com>
Fri, 28 Jun 2013 22:23:24 +0000 (15:23 -0700)
commitc939a7c66583af08dd6f830117f7e405b2ba4844
tree50d0fad2c4b4df70f3f276eabe59ad3109938718
parentbbf56367b81cac688045a1a6af29d50234fd90d7
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: Lenny Szubowicz <lszubowi@redhat.com>
Reported-by: Naotaka Hamaguchi <n.hamaguchi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/firmware/efi/efi-pstore.c