diff options
author | Aditya Pakki <[email protected]> | 2019-03-04 16:48:54 -0600 |
---|---|---|
committer | Song Liu <[email protected]> | 2019-03-12 10:15:18 -0700 |
commit | e406f12dde1a8375d77ea02d91f313fb1a9c6aec (patch) | |
tree | b11f0208ee191c21233ebc8a6c318d35daae1f5e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b761dcf1217760a42f7897c31dcb649f59b2333e (diff) |
md: Fix failed allocation of md_register_thread
mddev->sync_thread can be set to NULL on kzalloc failure downstream.
The patch checks for such a scenario and frees allocated resources.
Committer node:
Added similar fix to raid5.c, as suggested by Guoqing.
Cc: [email protected] # v3.16+
Acked-by: Guoqing Jiang <[email protected]>
Signed-off-by: Aditya Pakki <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions