]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: rds: fix excess initialization of the recv SGEs
authorZhu Yanjun <yanjun.zhu@oracle.com>
Fri, 25 Jan 2019 02:14:52 +0000 (21:14 -0500)
committerBrian Maly <brian.maly@oracle.com>
Wed, 30 Jan 2019 05:09:16 +0000 (00:09 -0500)
commitf00f2cc6fb4eba8b0423d1081adf969433f38560
treeaf50841728c12ef42031e5cd3ab61699bc3f137a
parent33271f2abc0291e3ef755ff2ff9190ceb58537b5
net: rds: fix excess initialization of the recv SGEs

In rds_ib_recv_init_ring(), an excess array element is incorrectly
initialized. This is not an OOB situation, as the sge array is
initialized to eight entries. With a fragment size of a maximum of 16KiB
and a page size of minimum 4KiB, then num_send_sge can at most become
five.

Orabug: 29004503

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/ib_recv.c