[Bug 208275] Kernel panic when reading from /dev/cd0 with a damaged dvd

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 29 Mar 2016 15:06:42 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208275

Konstantin Belousov <kib_at_FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib_at_FreeBSD.org

--- Comment #8 from Konstantin Belousov <kib_at_FreeBSD.org> ---
(In reply to Fabian Keil from comment #7)
I think the only needed part of the change is the move of n calculation after
the error check.

In head, cluster_read() and bread() relibably reset bp to NULL on error, _and_
brelse ignores NULL argument.  So it may be argued that the fix also could
remobe brelse() call from the error path.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tue Mar 29 2016 - 13:06:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC