commit | cb1185a4ae29367d00b0ae19413d64303c8c0e51 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Mar 10 10:39:42 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 12 11:08:58 2015 +0100 |
tree | 16a0efdcee5edef451c4989313f3f4551a9fb211 | |
parent | 65da04c1cada486a8619d5d53336059e5bd6d8b3 [diff] |
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 <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>