aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorValentine Fatiev <[email protected]>2019-06-30 16:48:41 +0300
committerJason Gunthorpe <[email protected]>2019-07-04 14:20:54 -0300
commit91b01061fef9c57d2f5b712a6322ef51061f4efd (patch)
tree93e65463effdaeedfaf10f7b0efe0d9e1f58e3a5 /drivers/mtd/lpddr/lpddr_cmds.c
parent50ba3c18a4e549ba6a5a4672dfb3eb30fcb7d570 (diff)
IB/ipoib: Add child to parent list only if device initialized
Despite failure in ipoib_dev_init() we continue with initialization flow and creation of child device. It causes to the situation where this child device is added too early to parent device list. Change the logic, so in case of failure we properly return error from ipoib_dev_init() and add child only in success path. Fixes: eaeb39842508 ("IB/ipoib: Move init code to ndo_init") Signed-off-by: Valentine Fatiev <[email protected]> Reviewed-by: Feras Daoud <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions