diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2020-01-23 16:38:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-24 10:08:40 +0100 |
commit | 2485055394be272d098ca7dd63193d5041fb8140 (patch) | |
tree | 69fb7b370c605e2095f6efaaddeea8090102e6f7 /drivers/staging | |
parent | 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c (diff) | |
download | linux-2485055394be272d098ca7dd63193d5041fb8140.tar.gz linux-2485055394be272d098ca7dd63193d5041fb8140.tar.bz2 linux-2485055394be272d098ca7dd63193d5041fb8140.zip |
staging: most: core: drop device reference
This patch drops the device reference added by function
bus_find_device_by_name.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1579793906-5054-3-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/most/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index d0fe873ce67a..da79076e03d4 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -534,6 +534,7 @@ static struct most_channel *get_channel(char *mdev, char *mdev_ch) dev = bus_find_device_by_name(&mc.bus, NULL, mdev); if (!dev) return NULL; + put_device(dev); iface = dev_get_drvdata(dev); list_for_each_entry_safe(c, tmp, &iface->p->channel_list, list) { if (!strcmp(dev_name(&c->dev), mdev_ch)) |