bql: Fix POSDIFF() to integer overflow aware.
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Wed, 30 May 2012 12:24:39 +0000 (12:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:03:26 +0000 (09:03 -0700)
commit19d07e884b7fd22f92eb8939556dcbf55df1982c
treee34fb56ca80a59da364b067238a85465caad38c1
parent8f5b330048b06ca0e2ffa88300922808ebc2b93f
bql: Fix POSDIFF() to integer overflow aware.

[ Upstream commit 0cfd32b736ae0c36b42697584811042726c07cba ]

POSDIFF() fails to take into account integer overflow case.

Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Denys Fedoryshchenko <denys@visp.net.lb>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_queue_limits.c