patch-2.4.19 linux-2.4.19/drivers/char/drm/radeon_state.c

Next file: linux-2.4.19/drivers/char/drm/sis_ds.c
Previous file: linux-2.4.19/drivers/char/drm/i810_dma.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/char/drm/radeon_state.c linux-2.4.19/drivers/char/drm/radeon_state.c
@@ -1058,7 +1058,7 @@
 			DRM_ERROR( "EFAULT on tex->image\n" );
 			return -EFAULT;
 		}
-	} else if ( size < 4 ) {
+	} else if ( size < 4 && size > 0 ) {
 		size = 4;
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)