Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586510 > unrolled thread

Re: [PATCH 2/3] mfd: cros_ec: add debugfs, console log file

Started byDoug Anderson <dianders@chromium.org>
First post2017-02-22 22:50 +0100
Last post2017-02-22 22:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/3] mfd: cros_ec: add debugfs, console log file Doug Anderson <dianders@chromium.org> - 2017-02-22 22:50 +0100

#1586510 — Re: [PATCH 2/3] mfd: cros_ec: add debugfs, console log file

FromDoug Anderson <dianders@chromium.org>
Date2017-02-22 22:50 +0100
SubjectRe: [PATCH 2/3] mfd: cros_ec: add debugfs, console log file
Message-ID<tdMXo-80p-5@gated-at.bofh.it>
Hi,

I'm not sure what happened to this patch, but I found it when making
sure that the bugfix pointed out in
<https://chromium-review.googlesource.com/c/444085/3/drivers/platform/chrome/cros_ec_debugfs.c#240>.
Presumably someone will want to pick it up eventually?  +Benson

On Mon, Aug 22, 2016 at 9:34 PM, Nicolas Boichat <drinkcat@chromium.org> wrote:
> +static int ec_read_version_supported(struct cros_ec_dev *ec)
> +{
> +       struct ec_params_get_cmd_versions_v1 *params;
> +       struct ec_response_get_cmd_versions *response;
> +       int ret;
> +
> +       struct cros_ec_command *msg;
> +
> +       msg = kzalloc(sizeof(*msg) + max(sizeof(params), sizeof(response)),
> +               GFP_KERNEL);
> +       if (!msg)
> +               return 0;
> +
> +       msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset;
> +       msg->outsize = sizeof(params);
> +       msg->insize = sizeof(response);

The above sizeof() calls are wrong.  They need "*"

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web