FreeBSD Bugzilla – Attachment 11891 Details for
Bug 23216
[PATCH] PCIOCGETCONF ioctl requires write permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.00 KB, created by
Lyndon Nerenberg
on 2000-12-01 22:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Lyndon Nerenberg
Created:
2000-12-01 22:20:00 UTC
Size:
1.00 KB
patch
obsolete
>Index: pci.c >=================================================================== >RCS file: /home/ncvs/src/sys/pci/pci.c,v >retrieving revision 1.141.2.4 >diff -u -u -r1.141.2.4 pci.c >--- pci.c 2000/10/28 23:10:17 1.141.2.4 >+++ pci.c 2000/12/01 22:04:29 >@@ -552,10 +552,6 @@ > const char *name; > int error; > >- if (!(flag & FWRITE)) >- return EPERM; >- >- > switch(cmd) { > case PCIOCGETCONF: > { >@@ -787,6 +783,9 @@ > break; > } > case PCIOCREAD: >+ if (!(flag & FWRITE)) >+ return EPERM; >+ > io = (struct pci_io *)data; > switch(io->pi_width) { > pcicfgregs probe; >@@ -808,6 +807,9 @@ > break; > > case PCIOCWRITE: >+ if (!(flag & FWRITE)) >+ return EPERM; >+ > io = (struct pci_io *)data; > switch(io->pi_width) { > pcicfgregs probe;
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 23216
: 11891