Skip to content

Commit

Permalink
nvme: reallocate fix
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Paupore <[email protected]>
  • Loading branch information
bpaupore-wdc committed Sep 21, 2023
1 parent 45afa8b commit e44b407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ static int get_phy_rx_eom_log(int argc, char **argv, struct command *cmd,
phy_rx_eom_log_len = le16_to_cpu(phy_rx_eom_log->hsize);
}

phy_rx_eom_log = realloc(&phy_rx_eom_log, phy_rx_eom_log_len);
phy_rx_eom_log = realloc(phy_rx_eom_log, phy_rx_eom_log_len);
if (!phy_rx_eom_log) {
err = -ENOMEM;
goto close_fd;
Expand Down

0 comments on commit e44b407

Please sign in to comment.