Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nvme-rpmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,10 @@ static int rpmb_program_auth_key(int fd, unsigned char target,
/* reuse response buffer */
memset(rsp, 0, rsp_size);
err = recv_rpmb_rsp(fd, req->target, rsp_size, rsp);
if (err != 0) {
if (err != 0)
fprintf(stderr, "Program Key recv error = 0x%x\n", err);
else
err = check_rpmb_response(req, rsp, "Failed to Program Key");
}
out:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the style from above, test for error print warning bail out. Also check the coding style. The commit message needs also more attention.

free(req);
free(rsp);
Expand Down
Loading