commit | d34138d057628211b1c835e13a64d0cc2423c969 | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Thu Feb 07 01:00:34 2013 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Feb 08 12:21:19 2013 -0800 |
tree | df6748f0f35437ceb4e3d0fdd49e8f6db2957cb4 | |
parent | b95d788ac72b86515842a4eb92bb58a8da76a975 [diff] |
pcmcia: synclink_cs: fix error handling in mgslpc_probe() mgslpc_probe() ignores errors in mgslpc_add_device() and does not release all resource if mgslpc_config() failed. The patch adds returned code to mgslpc_add_device() and fixes the both issues. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>