diff options
| author | 2021-07-13 12:34:38 +0300 | |
|---|---|---|
| committer | 2021-07-21 16:36:06 +0200 | |
| commit | 4afa0c22eed33cfe0c590742387f0d16f32412f3 (patch) | |
| tree | d784e736a1e1da4f8065a1d3e3c920e0cbb2f3af /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | Linux 5.14-rc2 (diff) | |
| download | linux-dev-4afa0c22eed33cfe0c590742387f0d16f32412f3.tar.xz linux-dev-4afa0c22eed33cfe0c590742387f0d16f32412f3.zip | |
driver core: auxiliary bus: Fix memory leak when driver_register() fail
If driver_register() returns with error we need to free the memory
allocated for auxdrv->driver.name before returning from
__auxiliary_driver_register()
Fixes: 7de3697e9cbd4 ("Add auxiliary bus support")
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20210713093438.3173-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
