[PATCH 6/8] xfs: fix unsigned underflow

Christoph Hellwig hch at infradead.org
Thu Jul 15 16:21:16 CDT 2010


On Thu, Jul 15, 2010 at 10:46:45PM +0400, Kulikov Vasiliy wrote:
> map_len is unsigned. Checking map_len <= 0 is buggy when it should be
> below zero. So, check exact expression instead of map_len.
> 
> Signed-off-by: Kulikov Vasiliy <segooon at gmail.com>

Looks good,


Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the xfs mailing list