From: Damien Le Moal <dlemoal@kernel.org>
To: Ranjan Kumar <ranjan.kumar@broadcom.com>,
linux-scsi@vger.kernel.org, martin.petersen@oracle.com
Cc: rajsekhar.chundru@broadcom.com, sathya.prakash@broadcom.com,
chandrakanth.patil@broadcom.com, prayas.patel@broadcom.com,
salomondush@google.com
Subject: Re: [PATCH v1 6/7] mpi3mr: Record and report controller firmware faults
Date: Mon, 12 Jan 2026 15:25:31 +0100 [thread overview]
Message-ID: <c6b01448-e314-4997-91fb-5d1937459ed0@kernel.org> (raw)
In-Reply-To: <20260112081037.74376-7-ranjan.kumar@broadcom.com>
On 1/12/26 09:10, Ranjan Kumar wrote:
> +static void mpi3mr_fault_uevent_emit(struct mpi3mr_ioc *mrioc)
> +{
> + struct kobj_uevent_env *env;
> +
> + env = kzalloc(sizeof(*env), GFP_KERNEL);
> + if (!env)
> + return;
> +
> + if (add_uevent_var(env, "DRIVER=%s", mrioc->driver_name))
> + return;
All the returns in this function are leaking env...
> + if (add_uevent_var(env, "IOC_ID=%u", mrioc->id))
> + return;
> + if (add_uevent_var(env, "FAULT_CODE=0x%08x", mrioc->saved_fault_code))
> + return;
> + if (add_uevent_var(env, "FAULT_INFO0=0x%08x",
> + mrioc->saved_fault_info[0]))
> + return;
> + if (add_uevent_var(env, "FAULT_INFO1=0x%08x",
> + mrioc->saved_fault_info[1]))
> + return;
> + if (add_uevent_var(env, "FAULT_INFO2=0x%08x",
> + mrioc->saved_fault_info[2]))
> + return;
> +
> + kobject_uevent_env(&mrioc->shost->shost_gendev.kobj,
> + KOBJ_CHANGE, env->envp);
Please align the arguments after the "(".
> + kfree(env);
> +}
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-01-12 14:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 8:10 [PATCH v1 0/7] mpi3mr: Enhancements for mpi3mr Ranjan Kumar
2026-01-12 8:10 ` [PATCH v1 1/7] mpi3mr: Add module parameter to control threaded IRQ polling Ranjan Kumar
2026-01-12 14:14 ` Damien Le Moal
2026-01-13 17:36 ` Ranjan Kumar
2026-01-12 8:10 ` [PATCH v1 2/7] mpi3mr: Rename log data save helper to reflect threaded/BH context Ranjan Kumar
2026-01-12 14:13 ` Damien Le Moal
2026-01-13 7:27 ` Ranjan Kumar
2026-01-15 8:45 ` Ranjan Kumar
2026-01-12 8:10 ` [PATCH v1 3/7] mpi3mr: Avoid redundant diag-fault resets Ranjan Kumar
2026-01-12 8:10 ` [PATCH v1 4/7] mpi3mr: Use negotiated link rate from DevicePage0 Ranjan Kumar
2026-01-12 14:18 ` Damien Le Moal
2026-01-13 17:46 ` Ranjan Kumar
2026-01-12 16:38 ` kernel test robot
2026-01-12 8:10 ` [PATCH v1 5/7] mpi3mr: Update MPI Headers to revision 39 Ranjan Kumar
2026-01-12 14:21 ` Damien Le Moal
2026-01-13 17:39 ` Ranjan Kumar
2026-01-12 8:10 ` [PATCH v1 6/7] mpi3mr: Record and report controller firmware faults Ranjan Kumar
2026-01-12 14:25 ` Damien Le Moal [this message]
2026-01-13 18:28 ` Ranjan Kumar
2026-01-12 8:10 ` [PATCH v1 7/7] mpi3mr: Driver version update to 8.17.0.3.50 Ranjan Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c6b01448-e314-4997-91fb-5d1937459ed0@kernel.org \
--to=dlemoal@kernel.org \
--cc=chandrakanth.patil@broadcom.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=prayas.patel@broadcom.com \
--cc=rajsekhar.chundru@broadcom.com \
--cc=ranjan.kumar@broadcom.com \
--cc=salomondush@google.com \
--cc=sathya.prakash@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.