Opened 3 years ago
Closed 3 years ago
#17283 closed bug (fixed)
SMAP violation on usb_disk
Reported by: | Coldfirex | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | Drivers/Disk/USB | Version: | R1/beta3 |
Keywords: | smap | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
I plugged in a USB dvd drive to my laptop, inserted an audio CD, opened MediaPlayer (which auto-started a .wav file), I stopped the wav file from playing, and then hit Eject from the file menu. Got SMAP KPL.
Can reproduce. hrev55445
Attachments (1)
Change History (9)
by , 3 years ago
Attachment: | PXL_20210925_004621175.jpg added |
---|
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Component: | Drivers/USB → Drivers/Disk/USB |
---|
comment:3 by , 3 years ago
Korli: Thanks for pointing out the area, but I will need to defer to someone else on making this change.
comment:4 by , 3 years ago
pushed a change to be tested: https://review.haiku-os.org/c/haiku/+/4505
available here: https://haiku.movingborders.es/testbuild/If594129a6e16b50c314efa2a7bb1d18e01cdad15/1/hrev55452/x86_64/
comment:6 by , 3 years ago
comment:7 by , 3 years ago
Fixed! And it actually ejects the usb disc drive with or without a disc inserted. :)
comment:8 by , 3 years ago
Milestone: | Unscheduled → R1/beta4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Thanks for the test and feedback! Applied in hrev55480
Coldfirex, please see https://git.haiku-os.org/haiku/tree/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp#n1802
basically it should be like: https://git.haiku-os.org/haiku/tree/src/add-ons/kernel/generic/scsi_periph/io.cpp#n406