summaryrefslogtreecommitdiff
path: root/drivers/staging/wlags49_h2
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-09-06 12:40:20 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-06 16:25:22 (GMT)
commitf0290de23de19b592b2934cdf21c0c0c2eb16500 (patch)
tree023beca4851a086625c2f8b404ee85a23e6cad75 /drivers/staging/wlags49_h2
parentd08d6cfe3b594b797e1204891613d1cdf70fb0c7 (diff)
downloadlinux-fsl-qoriq-f0290de23de19b592b2934cdf21c0c0c2eb16500.tar.xz
staging: ramster: fix range checks in zcache_autocreate_pool()
If "pool_id" is negative then it leads to a read before the start of the array. If "cli_id" is out of bounds then it leads to a NULL dereference of "cli". GCC would have warned about that bug except that we initialized the warning message away. Also it's better to put the parameter names into the function declaration in the .h file. It serves as a kind of documentation. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlags49_h2')
0 files changed, 0 insertions, 0 deletions