diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-04-09 08:29:55 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-09 13:43:57 +0100 |
commit | 9b844b087124c1538d05f40fda8a4fec75af55be (patch) | |
tree | 61fc35a3d02ad44b81f0f0ae3752023910dea973 /lib/test_bitmap.c | |
parent | 5fed9fe5b41aea58e5b32be506dc50c9ab9a0e4d (diff) |
spi: dln2: Fix reference leak to master
Call spi_master_get() holds the reference count to master device, thus
we need an additional spi_master_put() call to reduce the reference
count, otherwise we will leak a reference to master.
This commit fix it by removing the unnecessary spi_master_get().
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210409082955.2907950-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions