diff options
| author | Alexander Shishkin <[email protected]> | 2019-11-20 13:08:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-11-20 13:37:29 +0000 |
| commit | 512592779a337feb5905d8fcf9498dbf33672d4a (patch) | |
| tree | 8ac94d420069ac84e5eee831f75c8d294a0b1913 /net/unix/af_unix.c | |
| parent | coresight: replicator: Fix missing spin_lock_init() (diff) | |
| download | kernel-512592779a337feb5905d8fcf9498dbf33672d4a.tar.gz kernel-512592779a337feb5905d8fcf9498dbf33672d4a.zip | |
intel_th: Fix a double put_device() in error path
Commit a753bfcfdb1f ("intel_th: Make the switch allocate its subdevices")
factored out intel_th_subdevice_alloc() from intel_th_populate(), but got
the error path wrong, resulting in two instances of a double put_device()
on a freshly initialized, but not 'added' device.
Fix this by only doing one put_device() in the error path.
Signed-off-by: Alexander Shishkin <[email protected]>
Fixes: a753bfcfdb1f ("intel_th: Make the switch allocate its subdevices")
Reported-by: Wen Yang <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Cc: [email protected] # v4.14+
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
