]> git.karo-electronics.de Git - linux-beck.git/commit
staging: slicoss: free IO remapping on failure
authorKristina Martšenko <kristina.martsenko@gmail.com>
Tue, 18 Mar 2014 15:05:56 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 19:11:55 +0000 (12:11 -0700)
commiteea7c7036e73f661accf297e4b1630f0a48e611e
tree8aaabd9969a8014bb56181894ecfc7afc73d416b
parentba2ac29ed6afa4e4a6a42170e7a7aa64199321be
staging: slicoss: free IO remapping on failure

Make sure iounmap is always called after ioremap when module loading
fails. Also remove a call to release_mem_region because that region is
never reserved in the first place.

Fixes the following issue reported by Coccinelle:
drivers/staging/slicoss/slicoss.c:3727:1-7: ERROR: missing iounmap; ioremap on line 3661 and execution via conditional on line 3677

Signed-off-by: Kristina Martšenko <kristina.martsenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c