summaryrefslogtreecommitdiff
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-02-24 15:34:01 (GMT)
committerJ. Bruce Fields <bfields@redhat.com>2015-02-26 20:40:16 (GMT)
commit76cb4be993c03bf9ec65a58b13f12c679bb041e4 (patch)
tree03b3d028748f40de41ec8a71a83524e77f758a9d /block/blk-mq.h
parentc876486be17aeefe0da569f3d111cbd8de6f675d (diff)
downloadlinux-76cb4be993c03bf9ec65a58b13f12c679bb041e4.tar.xz
sunrpc: integer underflow in rsc_parse()
If we call groups_alloc() with invalid values then it's might lead to memory corruption. For example, with a negative value then we might not allocate enough for sizeof(struct group_info). (We're doing this in the caller for consistency with other callers of groups_alloc(). The other alternative might be to move the check out of all the callers into groups_alloc().) Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Simo Sorce <simo@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'block/blk-mq.h')
0 files changed, 0 insertions, 0 deletions