Re: [PATCH] pciutil: Enumerate alternative PCIe bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

> diff --git a/lib/generic.c b/lib/generic.c
> index c219592..5ee37f5 100644
> --- a/lib/generic.c
> +++ b/lib/generic.c
> @@ -69,9 +69,10 @@ void
>  pci_generic_scan(struct pci_access *a)
>  {
>    byte busmap[256];
> +  int basebus = strtol(pci_get_param(a, "i386.basebus"),NULL,16);

Sorry, but this is utterly wrong. This function is not specific
to i386 at all.

I will add a different work-around soon.

(Also, please note that using the i386 access methods on Linux
is inherently unsafe as there is no locking between accesses by
different processes and by the kernel. There are available only
as a last resort when everything else fails.)

				Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux