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 <[email protected]>
  • Loading branch information
JeevakaPrabu committed Aug 6, 2024
1 parent 31bf0df commit 2c8f934
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 2c8f934

Please sign in to comment.