]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:09 +0000 (14:11 +0100)
commit51716c730b1560c1c79c1d7de6115be10b1eef8a
treeea302c81672a452fa6ddc773723163813767eda6
parent1802992eaf26ba6a1fe4e6789cb348f3a69d7170
efi: Small leak on error in runtime map code

commit 86d68a58d00db3770735b5919ef2c6b12d7f06f3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/runtime-map.c