HomeFreeBSD

Do not access buffer if bread(9) or cluster_read(9) failed. On error,

Description

Do not access buffer if bread(9) or cluster_read(9) failed. On error,
the functions free the buffer and set the pointer to NULL. Also
remove useless call to brelse(9) on the error path.

PR: 208275
Submitted by: Fabian Keil <fk@fabiankeil.de>
MFC after: 2 weeks

Details

Provenance
kibAuthored on
Parents
rS297400: The sendfile(2) allows to send extra data from userspace before the file
Branches
Unknown
Tags
Unknown