diff options
| author | Wei Yongjun <[email protected]> | 2013-11-15 07:48:56 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2013-11-15 10:29:38 +0000 |
| commit | a4469a429fc71af6bad9c9e3f7307249dedfe8d1 (patch) | |
| tree | 85e93a5aea395af995b8aceb7acfb2647a078ef3 /net/unix/garbage.c | |
| parent | Merge remote-tracking branch 'spi/topic/wr' into spi-next (diff) | |
| download | kernel-a4469a429fc71af6bad9c9e3f7307249dedfe8d1.tar.gz kernel-a4469a429fc71af6bad9c9e3f7307249dedfe8d1.zip | |
spi: mpc512x: fix reference leak to master in mpc512x_psc_spi_do_remove()
Once a spi_master_get() call succeeds, we need an additional
spi_master_put() call to free the memory, otherwise we will
leak a reference to master. Fix by removing the unnecessary
spi_master_get() call.
Fixes: eaa24297846b ('spi: mpc512x: use devm_spi_register_master()')
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
