summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorYuho Choi <dbgh9129@gmail.com>2026-08-02 21:55:50 -0400
committerCorey Minyard <corey@minyard.net>2026-08-12 16:16:42 -0500
commitb6c46ab0bdee90c238e96ea4a74972118c97900d (patch)
tree4eb045ce29c2a62b71ad05f41e60d4d8e91d724f /scripts/const_structs.checkpatch
parent6d920a75df9a83ab096b3cde7a643b656e4fdfeb (diff)
downloadlinux-b6c46ab0bdee90c238e96ea4a74972118c97900d.tar.gz
linux-b6c46ab0bdee90c238e96ea4a74972118c97900d.zip
ipmi: Remove all sysfs files on registration failure
ipmi_add_smi() creates the nr_users and nr_msgs files before trying to create the maintenance_mode file. If that last creation fails, the error path removes only nr_users before dropping the final reference to the interface. Remove nr_msgs as well so no sysfs attribute embedded in the freed interface remains registered. Fixes: 627118470fcc ("ipmi: Add a maintenance mode sysfs file") Cc: stable@vger.kernel.org # 6.18 Signed-off-by: Yuho Choi <dbgh9129@gmail.com> Message-ID: <20260803015550.618808-1-dbgh9129@gmail.com> Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions