rom_bsl: fix incorrect use of sizeof().
This commit is contained in:
parent
989038d3b3
commit
5c5fec9acd
|
@ -416,8 +416,7 @@ static int unlock_device(struct rom_bsl_device *dev,
|
|||
|
||||
printc_dbg("Sending password...\n");
|
||||
|
||||
if (rom_bsl_xfer(dev, CMD_RX_PASSWORD, 0,
|
||||
password, sizeof(password)) < 0) {
|
||||
if (rom_bsl_xfer(dev, CMD_RX_PASSWORD, 0, password, 32) < 0) {
|
||||
printc_err("rom_bsl: RX password failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue