Re: [PATCH v3] staging: dgnc: check if kzalloc fails in dgnc_tty_init()

From: Dan Carpenter
Date: Tue Apr 07 2015 - 11:47:11 EST


On Tue, Apr 07, 2015 at 06:35:51PM +0300, Giedrius StatkeviÄius wrote:
> Well, the point of the patch is to put alloc and checks in one place to make the
> code less error and bug prone and fix some of bugs where ->channels[i] isn't
> checked.

Fine, fine. I can accept that. One patch is also ok.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/