[dm-devel] [patch] dm-cache-target: check for allocation failure

Alasdair G Kergon agk at redhat.com
Fri Mar 1 21:36:33 UTC 2013


On Fri, Mar 01, 2013 at 11:26:41PM +0300, Dan Carpenter wrote:
> The allocation here isn't checked.  I changed it to using kcalloc()
> as a cleanup.  It adds integer overflow checking as well which makes
> the code easier to audit.
 
Folded it in - thanks.

Alasdair




More information about the dm-devel mailing list