All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] ubifs: Fix potential memory leaks while iterating entries
@ 2020-06-01 12:00 ` Markus Elfring
  0 siblings, 0 replies; 14+ messages in thread
From: Markus Elfring @ 2020-06-01 12:00 UTC (permalink / raw)
  To: Zhihao Cheng, linux-mtd
  Cc: linux-kernel, kernel-janitors, Richard Weinberger, Yi Zhang

> Fix some potential memory leaks in error handling branches while
> iterating xattr entries.

Such information is useful.


> For example, function ubifs_tnc_remove_ino()
> forgets to free pxent if it exists. Similar problems also exist in
> ubifs_purge_xattrs(), ubifs_add_orphan() and ubifs_jnl_write_inode().

Can an other wording variant be a bit nicer?


I suggest to avoid the specification of duplicate function calls
(also for the desired exception handling).
Will it be helpful to add a few jump targets?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=77e6a8804abcc0504c904bd6e5cdf3a5cf8162#n455

Regards,
Markus

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-06-01 14:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-01 12:00 [PATCH 1/2] ubifs: Fix potential memory leaks while iterating entries Markus Elfring
2020-06-01 12:00 ` Markus Elfring
2020-06-01 13:45 ` Zhihao Cheng
2020-06-01 13:45   ` Zhihao Cheng
2020-06-01 13:45   ` Zhihao Cheng
2020-06-01 13:55   ` Richard Weinberger
2020-06-01 13:55     ` Richard Weinberger
2020-06-01 13:55     ` Richard Weinberger
2020-06-01 14:00   ` [1/2] " Markus Elfring
2020-06-01 14:00     ` Markus Elfring
2020-06-01 14:00     ` Markus Elfring
2020-06-01 14:09     ` Richard Weinberger
2020-06-01 14:09       ` Richard Weinberger
2020-06-01 14:09       ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.