]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: msi-laptop: fix memleak
authorLibo Chen <clbchenlibo.chen@huawei.com>
Mon, 20 May 2013 02:30:07 +0000 (10:30 +0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 10 Jul 2013 19:42:40 +0000 (15:42 -0400)
commit4c241b364b5899e46924bfd4f9599c45f8e4a146
tree9352efcdf1ce7c96219ff4867dab41b8318ae268
parente1a98e61c21694c9c690c7f253010cd44e89e7fd
x86: msi-laptop: fix memleak

1. fix two visible mistakes:
    * when load_scm_model_init faild, we should call platform_device_del(msipf_device)
    * msipf_attribute_group should be remove in err case

2. change some tags, give them real meaning.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/msi-laptop.c