]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: bd_open() should cleanup from disk_open() error
authorToomas Soome <tsoome@FreeBSD.org>
Sun, 5 Aug 2018 19:17:07 +0000 (19:17 +0000)
committerToomas Soome <tsoome@FreeBSD.org>
Sun, 5 Aug 2018 19:17:07 +0000 (19:17 +0000)
commit8750586c6127a95ee75c035aefd126ac2b11cec9
tree264cf93b50c9f699e43630bb42deec6ba3445619
parentd1e22b8f08b01a2c2f94c5b7ac5383ece4f71681
loader: bd_open() should cleanup from disk_open() error

Since bd_open() does early increment for reference counter and bcache
allocation, it also should undo those in case of the error.

Also remove unused variables rdev, g_err.
stand/i386/libi386/biosdisk.c