Re: [PATCH] remember to check return value from __copy_to_user() in cdrom_read_cdda_old()

From: Paul Mackerras
Date: Tue Sep 07 2004 - 04:33:07 EST


Jens Axboe writes:

> __copy_to_user is the unchecking version of copy_to_user.

It doesn't range-check the address, but it does return non-zero
(number of bytes not copied) if it encounters a fault writing to the
user buffer.

Paul.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/