projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ec130a
)
spi: spi_device memory should be released instead of device.
author
Roman Tereshonkov
<
[email protected]
>
Mon, 12 Apr 2010 09:56:35 +0000
(09:56 +0000)
committer
Grant Likely
<
[email protected]
>
Wed, 28 Apr 2010 07:17:58 +0000
(
01:17
-0600)
The memory for dev variable is allocated as a part of
spi_device structure memory which the dev belongs to.
Thus when the memory is released the right pointer is used.
Signed-off-by: Roman Tereshonkov <
[email protected]
>
Signed-off-by: Grant Likely <
[email protected]
>
drivers/spi/spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi.c
b/drivers/spi/spi.c
index ec429d156a574d35616de9ad8499ba860fadf392..b3a1f9259b62539d6f2b3bd4c2a501f93c337cee 100644
(file)
--- a/
drivers/spi/spi.c
+++ b/
drivers/spi/spi.c
@@
-41,7
+41,7
@@
static void spidev_release(struct device *dev)
spi->master->cleanup(spi);
spi_master_put(spi->master);
- kfree(
dev
);
+ kfree(
spi
);
}
static ssize_t