Date: Thu, 28 Jun 2012 10:40:57 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237702 - user/ae/bootcode/sys/boot/userboot/userboot Message-ID: <201206281040.q5SAev56071269@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Thu Jun 28 10:40:57 2012 New Revision: 237702 URL: http://svn.freebsd.org/changeset/base/237702 Log: Don't forget call disk_close() on disk closing. Modified: user/ae/bootcode/sys/boot/userboot/userboot/userboot_disk.c Modified: user/ae/bootcode/sys/boot/userboot/userboot/userboot_disk.c ============================================================================== --- user/ae/bootcode/sys/boot/userboot/userboot/userboot_disk.c Thu Jun 28 10:21:25 2012 (r237701) +++ user/ae/bootcode/sys/boot/userboot/userboot/userboot_disk.c Thu Jun 28 10:40:57 2012 (r237702) @@ -132,8 +132,10 @@ userdisk_open(struct open_file *f, ...) static int userdisk_close(struct open_file *f) { + struct disk_devdesc *dev; - return(0); + dev = (struct disk_devdesc *)f->f_devdata; + return (disk_close(dev)); } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206281040.q5SAev56071269>