From: H Hartley Sweeten Date: Tue, 12 Jun 2012 18:57:45 +0000 (-0700) Subject: staging: comedi: sanity check num_subdevices parameter in comedi_alloc_subdevices X-Git-Tag: v3.6-rc1~100^2~824 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f801c41714729f7741a042de839918be2bb56f0;p=pandora-kernel.git staging: comedi: sanity check num_subdevices parameter in comedi_alloc_subdevices It's possible for a couple of the comedi drivers to incorrectly call comedi_alloc_subdevices with num_subdevices = 0. Add a sanity check before doing the kcalloc. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed