Dan Carpenter 9a29d0fbc2 relay: check array offset before using it
Smatch complains that we started using the array offset before we
checked that it was valid.

Fixes: 017c59c042d0 ('relay: Use per CPU constructs for the relay channel buffer pointers')
Link: http://lkml.kernel.org/r/20161013084947.GC16198@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-14 16:04:08 -08:00
..
2016-04-04 09:46:47 -04:00
2016-11-25 16:25:52 -05:00
2016-11-16 09:26:35 +01:00
2016-12-13 10:41:53 -08:00
2016-08-05 09:00:54 -04:00
2016-12-12 18:55:06 -08:00
2016-05-27 15:26:11 -07:00
2016-10-07 18:46:30 -07:00
2016-09-22 20:00:36 -05:00