drbd: Ensure that data_size is not 0 before using data_size-1 as index
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 28 Mar 2012 08:17:32 +0000 (10:17 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 13:16:56 +0000 (15:16 +0200)
This could be exploited by a peer which runs modified code.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

No differences found