From: Arnd Bergmann <arnd@arndb.de>
To: outreachy-kernel@googlegroups.com
Cc: "Ksenija Stanojević" <ksenija.stanojevic@gmail.com>
Subject: Re: [Outreachy kernel] [PATCH 0/4] Do not DMA on the stack
Date: Mon, 05 Oct 2015 10:11:44 +0200 [thread overview]
Message-ID: <7470920.ePDpii2jg9@wuerfel> (raw)
In-Reply-To: <CAL7P5jJDJKXjERbZXvmyt0V22zbbWCr2=_rMVbwptK_WtQCuFA@mail.gmail.com>
On Monday 05 October 2015 08:50:09 Ksenija Stanojević wrote:
> On Mon, Oct 5, 2015 at 8:44 AM, Ksenija Stanojević
> <ksenija.stanojevic@gmail.com> wrote:
> > On Mon, Oct 5, 2015 at 8:40 AM, Ksenija Stanojević
> > <ksenija.stanojevic@gmail.com> wrote:
> >> On Mon, Oct 5, 2015 at 7:28 AM, Ksenija Stanojević
> >> <ksenija.stanojevic@gmail.com> wrote:
> >>> On Sun, Oct 4, 2015 at 10:39 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> >>>> On Sunday 04 October 2015 22:13:02 Ksenija Stanojevic wrote:
> >>>>> Fix error "doing DMA on the stack" by using kzalloc for buffer
> >>>>> allocation in rtl8192u/r8192U_core.c in the following functions:
> >>>>> write_nic_byte_E()
> >>>>> write_nic_byte()
> >>>>> write_nic_word()
> >>>>> write_nic_dword()
> >>>>> Issue found by smatch.
> >>>>>
> >>>>> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> >>>>>
> >>>>> Ksenija Stanojevic (4):
> >>>>> Staging: rtl8192u: Do not DMA on the stack in write_nic_byte_E()
> >>>>> Staging: rtl8192u: Do not DMA on the stack in write_nic_byte()
> >>>>> Staging: rtl8192u: Do not DMA on the stack in write_nic_word()
> >>>>> Staging: rtl8192u: Do not DMA on the stack in write_nic_dword()
> >>>>>
> >>>>
> >>>> The changes all look wrong to me, can you guess what the problem is
> >>>> when you read them again?
> >>>
> > Please ignore this.
> >> And also assign pdata to point to data
> >> pdata = &data;
>
> I meant *pdata = data.
Right. Once you change that, it should be fine.
Arnd
prev parent reply other threads:[~2015-10-05 8:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-04 20:13 [PATCH 0/4] Do not DMA on the stack Ksenija Stanojevic
2015-10-04 20:14 ` [PATCH 1/4] Staging: rtl8192u: Do not DMA on the stack in write_nic_byte_E() Ksenija Stanojevic
2015-10-05 3:17 ` [Outreachy kernel] " Greg KH
2015-10-05 3:27 ` Ksenija Stanojević
2015-10-04 20:14 ` [PATCH 2/4] Staging: rtl8192u: Do not DMA on the stack in write_nic_byte() Ksenija Stanojevic
2015-10-04 20:14 ` [PATCH 3/4] Staging: rtl8192u: Do not DMA on the stack in write_nic_word() Ksenija Stanojevic
2015-10-04 20:15 ` [PATCH 4/4] Staging: rtl8192u: Do not DMA on the stack in write_nic_dword() Ksenija Stanojevic
2015-10-05 3:27 ` Ksenija Stanojević
2015-10-04 20:39 ` [Outreachy kernel] [PATCH 0/4] Do not DMA on the stack Arnd Bergmann
2015-10-05 5:28 ` Ksenija Stanojević
2015-10-05 6:40 ` Ksenija Stanojević
2015-10-05 6:44 ` Ksenija Stanojević
2015-10-05 6:50 ` Ksenija Stanojević
2015-10-05 8:11 ` Arnd Bergmann [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=7470920.ePDpii2jg9@wuerfel \
--to=arnd@arndb.de \
--cc=ksenija.stanojevic@gmail.com \
--cc=outreachy-kernel@googlegroups.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.