Dan Carpenter f5fa2009e3 pnfs/blocklayout: off by one in bl_map_stripe()
commit 0914bb965e38a055e9245637aed117efbe976e91 upstream.

"dev->nr_children" is the number of children which were parsed
successfully in bl_parse_stripe().  It could be all of them and then, in
that case, it is equal to v->stripe.volumes_count.  Either way, the >
should be >= so that we don't go beyond the end of what we're supposed
to.

Fixes: 5c83746a0cf2 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 20:04:34 +02:00
..
2016-12-02 09:09:01 +01:00
2017-12-16 10:33:55 +01:00
2015-04-23 15:16:14 -04:00
2015-02-03 11:06:34 -08:00
2015-10-08 10:45:51 -04:00
2016-04-20 15:42:13 +09:00
2015-04-23 15:16:14 -04:00
2015-04-23 15:16:14 -04:00
2015-10-15 16:07:36 -04:00
2015-10-15 16:07:21 -04:00
2015-08-20 13:43:53 -05:00
2015-09-23 08:55:32 -04:00