From: Dan Carpenter Date: Tue, 10 Mar 2015 07:39:42 +0000 (+0300) Subject: staging: dgnc: off by one in dgnc_mgmt_ioctl() X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~478 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb1185a4ae29367d00b0ae19413d64303c8c0e51;p=pandora-kernel.git staging: dgnc: off by one in dgnc_mgmt_ioctl() "dgnc_NumBoards" is the number of initialized elements in the dgnc_Board[] array so the comparison should be ">=" instead of ">" so we don't read invalid data. We can remove the special handling of the empty array now that we've fixed this bug. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed