Skip to content

Commit

Permalink
fix build error in function mddev_destroy_serial_pool
Browse files Browse the repository at this point in the history
Merge of "md: fix kmemleak of rdev->serial" patch causes
too few arguments to function ‘mddev_destroy_serial_pool’ build
error.

Fix the issue by calling mddev_destroy_serial_pool with correct
arguments.

Tests done:
- Host kernel build

Tracked-On: OAM-123076
Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan@intel.com>
  • Loading branch information
JeevakaPrabu committed Aug 12, 2024
1 parent 4c19e9e commit dab8fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,7 @@ static int bind_rdev_to_array(struct md_rdev *rdev, struct mddev *mddev)
fail:
pr_warn("md: failed to register dev-%s for %s\n",
b, mdname(mddev));
mddev_destroy_serial_pool(mddev, rdev);
mddev_destroy_serial_pool(mddev, rdev, false);
return err;
}

Expand Down

0 comments on commit dab8fde

Please sign in to comment.