• Robb Manes's avatar
    net/mlx4: Handle return codes in mlx4_qp_attach_common · 23860f10
    Robb Manes authored
    Both new_steering_entry() and existing_steering_entry() return values
    based on their success or failure, but currently they fall through
    silently.  This can make troubleshooting difficult, as we were unable
    to tell which one of these two functions returned errors or
    specifically what code was returned.  This patch remedies that
    situation by passing the return codes to err, which is returned by
    mlx4_qp_attach_common() itself.
    
    This also addresses a leak in the call to mlx4_bitmap_free() as well.
    Signed-off-by: default avatarRobb Manes <rmanes@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    23860f10
mcg.c 41.5 KB