linux-stable/drivers
Christophe Lombard 6f8e45f7eb ocxl: Fix access to the AFU Descriptor Data
The AFU Information DVSEC capability is a means to extract common,
general information about all of the AFUs associated with a Function
independent of the specific functionality that each AFU provides.
Write in the AFU Index field allows to access to the descriptor data
for each AFU.

With the current code, we are not able to access to these specific data
when the index >= 1 because we are writing to the wrong location.
All requests to the data of each AFU are pointing to those of the AFU 0,
which could have impacts when using a card with more than one AFU per
function.

This patch fixes the access to the AFU Descriptor Data indexed by the
AFU Info Index field.

Fixes: 5ef3166e8a ("ocxl: Driver code for 'generic' opencapi devices")
Cc: stable <stable@vger.kernel.org>     # 4.16
Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>

Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-09-19 21:58:09 +10:00
..
accessibility
acpi Merge branch 'acpi-bus' 2018-09-07 10:05:20 +02:00
amba
android
ata SCSI fixes on 20180905 2018-09-05 09:17:20 -07:00
atm
auxdisplay
base memory_hotplug: fix kernel_panic on offline page processing 2018-09-04 16:45:02 -07:00
bcma
block Two rbd patches to complete support for images within namespaces that 2018-09-07 10:57:59 -07:00
bluetooth
bus Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2 2018-08-28 09:58:03 -07:00
cdrom cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status 2018-08-29 08:09:20 -06:00
char Fix things so the choice of whether or not to trust RDRAND to 2018-09-09 05:54:05 -07:00
clk clk: x86: Set default parent to 48Mhz 2018-08-30 14:47:41 -07:00
clocksource
connector
cpufreq
cpuidle cpuidle: menu: Retain tick when shallow state is selected 2018-08-25 13:16:08 +02:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-08-29 13:38:39 -07:00
dax drivers/dax/device.c: convert variable to vm_fault_t type 2018-09-04 16:45:02 -07:00
dca
devfreq
dio
dma Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-dax 2018-08-26 11:48:42 -07:00
dma-buf
edac
eisa
extcon
firewire
firmware firmware: arm_scmi: fix divide by zero when sustained_perf_level is zero 2018-09-06 09:59:40 -07:00
fmc
fpga
fsi
gnss
gpio gpio: Fix crash due to registration race 2018-08-31 11:30:45 +02:00
gpu drm/i915/dp_mst: Fix enabling pipe clock for all streams 2018-09-03 21:34:36 -07:00
hid
hsi
hv
hwmon ARM: SoC fixes 2018-09-08 15:38:57 -07:00
hwspinlock
hwtracing
i2c i2c: xiic: Make the start and the byte count write atomic 2018-09-06 20:49:09 +02:00
ide
idle
iio
infiniband
input
iommu ARM: SoC: late updates 2018-08-25 14:12:36 -07:00
ipack
irqchip irqchip/gic-v3-its: Cap lpi_id_bits to reduce memory footprint 2018-09-06 20:31:59 +02:00
isdn
leds
lightnvm
macintosh
mailbox
mcb
md md-cluster: release RESYNC lock after the last resync message 2018-08-31 17:38:10 -07:00
media Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-dax 2018-08-26 11:48:42 -07:00
memory memory: ti-aemif: fix a potential NULL-pointer dereference 2018-09-06 10:04:07 -07:00
memstick
message
mfd
misc ocxl: Fix access to the AFU Descriptor Data 2018-09-19 21:58:09 +10:00
mmc
mtd mtd: rawnand: denali: do not pass zero maxchips to nand_scan() 2018-08-27 20:41:46 +02:00
mux
net net: phy: sfp: Handle unimplemented hwmon limits and alarms 2018-09-04 12:22:41 -07:00
nfc
ntb
nubus
nvdimm libnvdimm-for-4.19_dax-memory-failure 2018-08-25 18:43:59 -07:00
nvme nvmet: free workqueue object if module init fails 2018-08-28 08:40:44 +02:00
nvmem
of dma-mapping fixes for 4.19-rc2 2018-09-02 20:09:36 -07:00
opp
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset ARM: SoC: late updates 2018-08-25 14:12:36 -07:00
rpmsg
rtc
s390 libnvdimm-for-4.19_misc 2018-08-25 18:13:10 -07:00
sbus
scsi scsi: aacraid: fix a signedness bug 2018-08-27 13:17:00 -04:00
sfi
sh
siox
slimbus
sn
soc
soundwire
spi
spmi
ssb
staging
target scsi: target: iscsi: cxgbit: use pr_debug() instead of pr_info() 2018-08-27 12:26:10 -04:00
tc
tee
thermal Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal 2018-08-28 16:11:34 -07:00
thunderbolt
tty powerpc fixes for 4.19 #2 2018-08-24 09:34:23 -07:00
uio
usb
uwb
vfio
vhost Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-08-27 11:59:39 -07:00
video
virt
virtio virtio, vhost: fixes, tweaks 2018-08-24 08:45:19 -07:00
visorbus
vlynq
vme
w1
watchdog
xen xen: fixes for 4.19-rc2 2018-08-31 08:45:16 -07:00
zorro
Kconfig
Makefile