dma-debug: fix off-by-one error in overlap function
commit1d13d53f580ce84783fc7de8a25a978b47c53757
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 16 Jun 2009 10:23:58 +0000 (16 12:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Jul 2009 03:38:51 +0000 (19 20:38 -0700)
treea968d76526916ec022b7c2c483e2ea92157da072
parent6006f5048e1a766e7a1ca012d7f17f061b2e8dfe
dma-debug: fix off-by-one error in overlap function

commit c79ee4e466dd12347f112e2af306dca35198458f upstream.

This patch fixes a bug in the overlap function which returned true if
one region ends exactly before the second region begins. This is no
overlap but the function returned true in that case.

Reported-by: Andrew Randrianasulu <randrik@mail.ru>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/dma-debug.c