commit | b92b36eadf4d7fa4a34f048c2a3bb61a735a885e | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri May 08 18:07:40 2020 +0300 |
committer | Tejun Heo <tj@kernel.org> | Mon May 11 10:25:42 2020 -0400 |
tree | 509e65da7d8a1484708b97e6d2098758864c02e3 | |
parent | f187b6974f6dfbeba4aafda972cc37f27d091b73 [diff] |
workqueue: Fix an use after free in init_rescuer() We need to preserve error code before freeing "rescuer". Fixes: f187b6974f6df ("workqueue: Use IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO.") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>