efi: Small leak on error in runtime map code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Jan 2015 09:21:21 +0000 (12:21 +0300)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 20 Jan 2015 15:50:25 +0000 (15:50 +0000)
commit86d68a58d00db3770735b5919ef2c6b12d7f06f3
tree86c44e08c0682d84147ce93a82efc86fee8d014b
parent822a0279287603f150b991d0ea319bbba5aa235a
efi: Small leak on error in runtime map code

The "> 0" here should ">= 0" so we free map_entries[0].

Fixes: 926172d46038 ('efi: Export EFI runtime memory mapping to sysfs')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/runtime-map.c