> dup_utask() installs the new uprobe_task in t->utask before copying
> return_instances. If dup_return_instance() fails, the partially copied
> utask is left attached to the child task.
> 
> Free the partially copied utask before returning -ENOMEM.
> 
> Also, dup_return_instance() copies the return_instance before fixing
> up extra_consumers.
> 
> Here, if no deep copy is needed, clear the copied extra_consumers
> pointer.
> 
> Signed-off-by: Keke Ming <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1


Reply via email to