OSDN Git Service

bcma: add missing iounmap on error path
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 26 Jul 2012 15:45:52 +0000 (17:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 Jul 2012 19:37:57 +0000 (15:37 -0400)
commit9dbf5f55f8d35ff9aedc75267f4e4042aaf89755
tree0fd4f4861f86f87a75ffd9e888923d9f79606cb1
parentd8f1bd2ffcce6af1ace4f1efb327765144aa0755
bcma: add missing iounmap on error path

This should fix the problem reported by Fengguang:

The coccinelle static checker emits these warnings:

drivers/bcma/scan.c:466:3-9: ERROR: missing iounmap; ioremap on line 451 and execution via conditional on line 465
drivers/bcma/scan.c:540:3-9: ERROR: missing iounmap; ioremap on line 515 and execution via conditional on line 539

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/scan.c