From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: linux-watchdog@vger.kernel.org, Wim Van Sebroeck <wim@iguana.be>
Subject: Re: [PATCH] watchdog: pcwd_usb: Use allocated buffer for usb_control_msg
Date: Mon, 14 Oct 2013 09:34:52 -0700 [thread overview]
Message-ID: <20131014163452.GA11637@kroah.com> (raw)
In-Reply-To: <1381768174-15395-1-git-send-email-linux@roeck-us.net>
On Mon, Oct 14, 2013 at 09:29:34AM -0700, Guenter Roeck wrote:
> usb_control_msg() must use a dma-capable buffer.
>
> This fixes the following error reported by smatch:
>
> drivers/watchdog/pcwd_usb.c:257 usb_pcwd_send_command() error: doing dma on the
> stack (buf)
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
next prev parent reply other threads:[~2013-10-14 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 16:29 [PATCH] watchdog: pcwd_usb: Use allocated buffer for usb_control_msg Guenter Roeck
2013-10-14 16:34 ` Greg Kroah-Hartman [this message]
2013-10-29 7:51 ` Wim Van Sebroeck
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=20131014163452.GA11637@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=wim@iguana.be \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox