]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: fix dma_mapping_error call
authorDesnes Augusto Nunes do Rosario <desnesn@linux.vnet.ibm.com>
Fri, 17 Nov 2017 11:09:04 +0000 (09:09 -0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2017 01:37:00 +0000 (10:37 +0900)
commitc8d8e28d346d9c808b0512cbbfe5bff47f605a90
treee22d27d6e495b6932eb315962828e6b63510948c
parent790f2638efe0a058ddedf75087f1ea1438da3517
ibmvnic: fix dma_mapping_error call

This patch fixes the dma_mapping_error call to use the correct dma_addr
which is inside the ibmvnic_vpd struct. Moreover, it fixes an uninitialized
warning regarding a local dma_addr variable which is not used anymore.

Fixes: 14e3786fc435 ("ibmvnic: Feature implementation of VPD for the ibmvnic driver")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c