FreeBSD Bugzilla – Attachment 13851 Details for
Bug 26188
Kernel page fault in mpu attach
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 896 bytes, created by
bloom
on 2001-03-29 02:10:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
bloom
Created:
2001-03-29 02:10:02 UTC
Size:
896 bytes
patch
obsolete
>Index: mpu.c >=================================================================== >RCS file: /users/ncvs/src/sys/dev/sound/isa/mpu.c,v >retrieving revision 1.5 >diff -u -r1.5 mpu.c >--- mpu.c 2001/03/14 07:29:46 1.5 >+++ mpu.c 2001/03/27 02:20:29 >@@ -358,6 +358,8 @@ > > DEB(printf("mpu: attaching.\n")); > >+ mtx_init(&scp->mtx, "mpumid", MTX_DEF); >+ > /* Allocate the resources, switch to uart mode. */ > if (mpu_allocres(scp, dev) || mpu_uartmode(scp)) { > mpu_releaseres(scp, dev); >@@ -368,7 +370,6 @@ > > /* Fill the softc. */ > scp->dev = dev; >- mtx_init(&scp->mtx, "mpumid", MTX_DEF); > scp->devinfo = devinfo = create_mididev_info_unit(MDT_MIDI, &mpu_op_desc, &midisynth_op_desc); > > /* Fill the midi info. */ >@@ -751,6 +752,7 @@ > bus_release_resource(dev, SYS_RES_IOPORT, scp->io_rid, scp->io); > scp->io = NULL; > } >+ mtx_destroy(&scp->mtx); > } > > static device_method_t mpu_methods[] = {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26188
: 13851