Christoph Hellwig ab04de8ec2 /dev/zero: fixups for ->read
Reported the cleared bytes in case of a partial clear_user instead
of -EFAULT, and remove a pointless conditional, as cleared must be
non-zero by the time we hit the signal_pending check.

Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20200907082700.2057137-1-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-07 10:46:35 +02:00
..
2020-08-28 21:17:56 +02:00
2020-08-02 18:26:51 +03:00
2020-08-28 16:38:29 -07:00
2020-09-07 10:46:35 +02:00
2020-08-15 08:18:22 -07:00
2020-08-28 09:46:48 -07:00
2020-08-26 10:44:15 -07:00
2020-08-29 12:37:00 -07:00
2020-08-05 19:24:27 -07:00
2020-08-28 16:38:29 -07:00
2020-08-28 10:15:33 -07:00
2020-08-31 07:17:17 +02:00
2020-08-24 11:53:15 -07:00
2020-08-14 16:00:09 -07:00
2020-08-26 10:58:20 -07:00
2020-08-30 10:51:03 -07:00
2020-08-30 10:56:12 -07:00
2020-08-29 12:44:30 -07:00