aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <[email protected]>2012-05-28 08:52:05 +0000
committerDavid S. Miller <[email protected]>2012-05-29 17:30:07 -0400
commita0c6ffbcfe600606b2d913dded4dc6b37b3bbbfd (patch)
tree9ac2c85b2d78b0377a49319cd93ba1f498ba7a89 /net/lapb/lapb_out.c
parentc51ce49735c183ef2592db70f918ee698716276b (diff)
rds_rdma: don't assume infiniband device is PCI
RDS code assumes that the struct ib_device dma_device member, which is a pointer, points to a struct device embedded in a struct pci_dev. This is not the case for ehca, for example, which is a OF driver, and makes dma_device point to a struct device embedded in a struct platform_device. This will make the system crash when rds_rdma is loaded in a system with ehca, since it will try to access the bus member of a non-existent struct pci_dev. The only reason rds_rdma uses the struct pci_dev is to get the NUMA node the device is attached to. Using dev_to_node for that is much better, since it won't assume which bus the infiniband is attached to. Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Venkat Venkatsubra <[email protected]> Acked-by: Venkat Venkatsubra <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions