From: Gustavo Padovan <padovan@profusion.mobi>
To: anderson.briglia@openbossa.org
Cc: linux-bluetooth@vger.kernel.org,
Anderson Lizardo <anderson.lizardo@openbossa.org>
Subject: Re: [PATCH] Bluetooth: Fix wrong memcpy size on LE start encryption
Date: Mon, 19 Sep 2011 16:45:36 -0300 [thread overview]
Message-ID: <20110919194536.GI2643@joana> (raw)
In-Reply-To: <4e778cdf.c964cc0a.2f7c.5b05@mx.google.com>
* anderson.briglia@openbossa.org <anderson.briglia@openbossa.org> [2011-09-19 14:41:09 -0400]:
> From: Anderson Briglia <anderson.briglia@openbossa.org>
>
> This patch fixes wrong memcpy size when copying rand value to
> HCI_OP_LE_START_ENC command.
> The compiler pretends that the array parameter was declared as a pointer
> and sizeof reports the size of the pointer. [1]
>
> [1] http://www.c-faq.com/aryptr/aryparmsize.html
>
> Signed-off-by: Anderson Briglia <anderson.briglia@openbossa.org>
> Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org>
> ---
> net/bluetooth/hci_conn.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Gustavo
prev parent reply other threads:[~2011-09-19 19:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-19 18:41 [PATCH] Bluetooth: Fix wrong memcpy size on LE start encryption anderson.briglia
2011-09-19 19:45 ` Gustavo Padovan [this message]
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=20110919194536.GI2643@joana \
--to=padovan@profusion.mobi \
--cc=anderson.briglia@openbossa.org \
--cc=anderson.lizardo@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).