aboutsummaryrefslogtreecommitdiff
path: root/mm/msync.c
diff options
context:
space:
mode:
authorValentine Fatiev2019-06-30 16:48:41 +0300
committerJason Gunthorpe2019-07-04 14:20:54 -0300
commit91b01061fef9c57d2f5b712a6322ef51061f4efd (patch)
tree93e65463effdaeedfaf10f7b0efe0d9e1f58e3a5 /mm/msync.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 <valentinef@mellanox.com> Reviewed-by: Feras Daoud <ferasda@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'mm/msync.c')
0 files changed, 0 insertions, 0 deletions