[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-stable-commits
Subject:    Re: Patch "EDAC: Fix kcalloc argument order" has been added to the 3.7-stable tree
From:       Greg KH <gregkh () linuxfoundation ! org>
Date:       2013-01-30 17:01:30
Message-ID: 20130130170130.GA15282 () kroah ! com
[Download RAW message or body]

On Wed, Jan 30, 2013 at 05:36:20PM +0100, Borislav Petkov wrote:
> On Wed, Jan 30, 2013 at 05:23:29PM +0100, Greg KH wrote:
> > How is the size the same both ways? Is the count always somehow the
> > same value as the size of the structure? How is that possible? Luck?
> 
> static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags)
> {
>         if (size != 0 && n > SIZE_MAX / size)
>                 return NULL;
>         return __kmalloc(n * size, flags);
> }
> 
> It doesn't matter what 'size' and what 'n' is.

Ah, ok, that makes sense.

Joe, thanks for pointing this out, I'll go drop it from the stable
queue.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe stable-commits" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic