pfg 999ae367a8 {ext2|ufs}_readdir: Avoid setting negative ncookies.
ncookies cannot be negative or the allocator will fail. This should only
happen if a caller is very broken but we can still try to survive the
event.

We should probably also verify for uio_resid > MAXPHYS but in that case
it is not clear that just clipping the ncookies value is an adequate
response.

MFC after:	2 weeks
2018-02-06 22:38:19 +00:00
..
2018-01-05 10:04:01 +00:00
2018-01-23 14:17:04 +00:00
2018-01-14 20:46:39 +00:00
2018-01-05 10:04:01 +00:00
2018-01-14 20:46:39 +00:00
2018-02-05 15:14:01 +00:00
2018-01-05 10:04:01 +00:00
2018-01-14 20:46:39 +00:00