powerpc/spufs: Fix test in spufs_switch_log_read()
authorroel kluin <roel.kluin@gmail.com>
Wed, 14 Oct 2009 05:32:28 +0000 (05:32 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Nov 2009 03:31:25 +0000 (14:31 +1100)
commit17e376756169af818c2e1c230502167cd1571a6c
tree89d7567eb8fd7d3580b45483292c220b9a5f19b4
parentd67ebe72c9ce525019db9139153b55247d34b0a4
powerpc/spufs: Fix test in spufs_switch_log_read()

size_t len cannot be less than 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/spufs/file.c