Skip to contentSkip to conversation

RDMA/ucma: fix memory leak of mc on an xa_alloc failure

PATCH Colin Ian King 1 participant 1 message Sep 2, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · Markus Elfring
Quoted 3 lines

Currently when an xa_alloc failure occurs the error exit path leaks the allocated object mc. Fix this by adding an error return path that frees mc and rename error exit paths err3 to err4 and err2 to err3.

I propose to choose further alternatives for numbered labels.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?idœ7d619be5a002ea29c172df5e3c1227c22cbb41#n485

Regards,
Markus

That's nice