FreeBSD Bugzilla – Attachment 208771 Details for
Bug 241645
sysutils/bsdisks: coredumps when encountering nvme devices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
return error if cam_open_spec_device() fails
patch-camcontrol.c (text/plain), 600 bytes, created by
Christoph Moench-Tegeder
on 2019-11-01 16:39:22 UTC
(
hide
)
Description:
return error if cam_open_spec_device() fails
Filename:
MIME Type:
Creator:
Christoph Moench-Tegeder
Created:
2019-11-01 16:39:22 UTC
Size:
600 bytes
patch
obsolete
>--- camcontrol.c.orig 2019-11-01 16:23:36 UTC >+++ camcontrol.c >@@ -170,9 +170,10 @@ int cam_is_removable(const char* device_path) > == -1) > errx(1, "%s", cam_errbuf); > >- if ((cam_dev = cam_open_spec_device(device,unit,O_RDWR,NULL)) >- == NULL) >+ if ((cam_dev = cam_open_spec_device(device,unit,O_RDWR,NULL)) == NULL) { > errx(1,"%s", cam_errbuf); >+ return (-1); >+ } > > inq_error = scsiinquiry(cam_dev, task_attr, retry_count, timeout, &inq_result); > ident_error = ataidentify(cam_dev, retry_count, timeout, &ident_result);
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 241645
: 208771