diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-01-14 01:56:37 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-01-14 09:35:52 +0300 |
commit | fd6a3ac8e87cedd83d6aad4bbc2682a903fb5d01 (patch) | |
tree | e1aeff28f9a2e152fed22f187dbbf99bae740ffe /net/unix/af_unix.c | |
parent | 78f6fdd6161f6b5a8fc13b8b0def923437a61a7f (diff) | |
download | linux-fd6a3ac8e87cedd83d6aad4bbc2682a903fb5d01.tar.xz |
soundwire: bus: fix device number leak on errors
If the programming of the dev_number fails due to an IO error, a new
device_number will be assigned, resulting in a leak.
Make sure we only assign a device_number once per Slave device.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200113225637.17313-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions