lkml.org 
[lkml]   [2019]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging: mt7621-dma: sizeof via pointer dereference
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

\
 
 \ /
  Last update: 2019-05-31 00:03    [W:0.032 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site