From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Benjamin Sherman <benjamin@bensherman.io>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: mt7621-dma: sizeof via pointer dereference
Date: Thu, 30 May 2019 14:57:08 -0700 [thread overview]
Message-ID: <20190530215708.GA20810@kroah.com> (raw)
In-Reply-To: <20190530214142.cna6mgdhqgxgaczw@valkyrie-prime.rpi>
On Thu, May 30, 2019 at 09:41:43PM +0000, Benjamin Sherman wrote:
> Pass the size of a struct into kzalloc by pointer dereference. This
> complies with the Linux kernel coding style and removes the possibility
> for a bug when the pointer's type is changed.
>
> Signed-off-by: Benjamin Sherman <benjamin@bensherman.io>
> ---
> This is my first patch, so please forgive any seemingly obvious
> mistakes. I apologize if this is the incorrect mailing list.
> ---
> drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Can you resend and properly cc: the needed developers and mailing list
that scripts/get_maintainer.pl says to cc:?
thanks,
greg k-h
next prev parent reply other threads:[~2019-05-30 22:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 21:41 [PATCH] staging: mt7621-dma: sizeof via pointer dereference Benjamin Sherman
2019-05-30 21:57 ` Greg Kroah-Hartman [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-05-30 23:53 Benjamin Sherman
2019-05-30 23:53 ` Benjamin Sherman
2019-05-30 23:53 ` Benjamin Sherman
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=20190530215708.GA20810@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=benjamin@bensherman.io \
--cc=linux-kernel@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 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.