commit | ac2b0813fceaf7cb3d8d46c7b33c90bae9fa49db | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Sep 10 16:42:42 2019 +0300 |
committer | Wolfram Sang <wsa@the-dreams.de> | Thu Apr 30 16:11:41 2020 +0200 |
tree | 37788d588f0978cd985c251c9de6858995810f62 | |
parent | 8839e4605eacfc711b775c90f24b62149bf6574e [diff] |
i2c: amd-mp2-pci: Fix Oops in amd_mp2_pci_init() error handling The problem is that we dereference "privdata->pci_dev" when we print the error messages in amd_mp2_pci_init(): dev_err(ndev_dev(privdata), "Failed to enable MP2 PCI device\n"); ^^^^^^^^^^^^^^^^^ Fixes: 529766e0a011 ("i2c: Add drivers for the AMD PCIe MP2 I2C controller") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org