Sysfs: fix possible memleak in sysfs_follow_link
authorArmin Kuster <akuster@mvista.com>
Wed, 29 Apr 2009 17:29:59 +0000 (07:29 -1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:30:23 +0000 (21:30 -0700)
commit557411eb2ce61ef5e87bd759a6f86881586df857
tree4410ea3f6aea26157da3634b7c2c4cb9166d0fb7
parentb22813b373749d0878e7140e9a6eadf182298709
Sysfs: fix possible memleak in sysfs_follow_link

There is the possiblity of a memory leak if a page is allocated and if
sysfs_getlink() fails in the sysfs_follow_link.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/symlink.c