projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8dbad6
)
caif: spi: missing platform_driver_unregister() on error in cfspi_init_module()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 25 Apr 2013 07:15:23 +0000
(15:15 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 25 Apr 2013 07:51:43 +0000
(
03:51
-0400)
Add the missing platform_driver_unregister() before return
from cfspi_init_module() in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_spi.c
patch
|
blob
|
history
diff --git
a/drivers/net/caif/caif_spi.c
b/drivers/net/caif/caif_spi.c
index
b71ce9b
..
ae7e756
100644
(file)
--- a/
drivers/net/caif/caif_spi.c
+++ b/
drivers/net/caif/caif_spi.c
@@
-864,6
+864,7
@@
static int __init cfspi_init_module(void)
driver_remove_file(&cfspi_spi_driver.driver,
&driver_attr_up_head_align);
err_create_up_head_align:
+ platform_driver_unregister(&cfspi_spi_driver);
err_dev_register:
return result;
}