diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-07-10 11:33:22 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-08-03 10:08:39 +0200 |
| commit | 8ecfd520eaa46bd79e6b0361f5bb55b144d221b2 (patch) | |
| tree | 7f28e29d8a0217ea7065b49d45d595a1a710a685 /drivers/phy/axiado/git@git.tavy.me:linux.git | |
| parent | f98d6db17e0a4ca5aebdc36ec9c321733f4aa3d8 (diff) | |
binfmt_misc: use __free(kfree) in bm_register_write()
bm_register_write() has to free the entry it got from create_entry()
on every failure until add_entry() has linked it into the filesystem
and made the inode its owner. Arm the entry with __free(kfree) so the
error branches can simply return and disarm it via
retain_and_null_ptr() once ownership has been handed to the inode.
The interpreter file keeps its manual error cleanup as freeing the
entry would not close it.
No functional change.
Link: https://patch.msgid.link/20260710-work-binfmt_misc-locking-v3-21-a162f7cb58d6@kernel.org
Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'drivers/phy/axiado/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
