From: Orczykowski, Juergen Date: Tue, 8 May 2007 07:37:25 +0000 (-0700) Subject: intelfb: fix ring space calculation X-Git-Tag: v2.6.22-rc1~462 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71c6efd9930bd87249d007120425341d1293303d;p=pandora-kernel.git intelfb: fix ring space calculation If there is less than RING_MIN_FREE available in the ring buffer, dinfo->ring_space is set to a big value forcing wait_ring to return. Fix by making ring space = 0 if ring space < RING_MIN_FREE. Signed-off-by: Dave Airlie Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed