Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1474116
| Path | csiph.com!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Lee Jones <lee.jones@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed |
| Date | Thu, 01 Sep 2016 09:10:03 +0200 |
| Message-ID | <scuin-5Pb-49@gated-at.bofh.it> (permalink) |
| References | <sckM1-7eb-3@gated-at.bofh.it> <sckM2-7eb-11@gated-at.bofh.it> |
| X-Original-To | Loic Pallardy <loic.pallardy@st.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=VapYQrHR7T/A91TlvjVSK8ASpdfC+b0VajGiUDwWZ40=; b=dTZl1/zM/Fdj1F8HuCTtcTybAOX0hMeKVAVXr5SzeEAaam0RIiLyIBe/IV7HSsAy82 uO5I7jBfUwAONMcaHY/klbknTn4kiUHKV2cHiZ4XPB2kIIsBufCFTW6k3CDGpO9ZWYGD jjRTAgiPue+VZ8EydfPrEQYt8OCUK6ZtEaNwk= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=VapYQrHR7T/A91TlvjVSK8ASpdfC+b0VajGiUDwWZ40=; b=QTTJ2chZeTSV9OkQROTH09J/YE7FoONS2DeZ+RenEaFxjv5TpQlD5c60lmfYpwi7uP VyrnCOLwt+U09tKlTz9I941U70dxiw6t9TUsnWEky5CRSvKbPNaeAfkCm7tjeLIwek1l nhEWsB6kcvl8ZzGC41BZg0+iXh45afAE5TyCJOm0fmSfiMnhH7iJs0bP6zDlsjYD3SRE DrALvMcysWeoEOaG2vRn3OSM5bFHcI3t70nfmbdPtX/Fn8l8StfXttHa418fEvGoU3TC 8nprvqIEplRPiOM7akzQzQ24QNTAyL6FIvqggo8JxmiDJ6usoCOq3F/poKBS+KYoCyPJ vkwg== |
| X-Gm-Message-State | AE9vXwO2WxYY+net4dcuxYhSp49PhY5WsEgsydNekW10rb2A5QhTbcn+Kcr2GGhw6c+vKpmE |
| X-Received | by 10.194.77.97 with SMTP id r1mr12625358wjw.83.1472713685999; Thu, 01 Sep 2016 00:08:05 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| User-Agent | Mutt/1.6.2 (2016-07-01) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | bjorn.andersson@linaro.org, ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, Loic Pallardy <loic.pallardy@wanadoo.fr> |
| X-Original-Date | Thu, 1 Sep 2016 08:09:53 +0100 |
| X-Original-Message-ID | <20160901070953.GB4921@dell> |
| X-Original-References | <1472676622-32533-1-git-send-email-loic.pallardy@st.com> <1472676622-32533-7-git-send-email-loic.pallardy@st.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1474116 |
Show key headers only | View raw
On Wed, 31 Aug 2016, Loic Pallardy wrote:
> In rproc_fw_boot, add error message if kmemdump failed
> as done for other errors.
>
> Signed-off-by: Loic Pallardy <loic.pallardy@wanadoo.fr>
> ---
> drivers/remoteproc/remoteproc_core.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index 96bc8c644..3282a4e 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -1139,8 +1139,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
> * cached_table will be copied into device memory.
> */
> rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL);
> - if (!rproc->cached_table)
> + if (!rproc->cached_table) {
> + dev_err(dev, "Failed to create cached table\n");
This is an OOM error message, which are not allowed upstream.
I believe if kmemdup() fails, the OOM handler will inform the user.
> goto clean_up;
> + }
>
> rproc->table_ptr = rproc->cached_table;
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed Loic Pallardy <loic.pallardy@st.com> - 2016-08-31 23:00 +0200
Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed Lee Jones <lee.jones@linaro.org> - 2016-09-01 09:10 +0200
Re: [PATCH v2 06/19] remoteproc: core: Add explicit message error if cached table failed loic pallardy <loic.pallardy@st.com> - 2016-09-08 11:50 +0200
csiph-web