Skip to content

Commit

Permalink
Input: atmel_mxt_ts - check firmware format before entering bootloader
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Dyer <[email protected]>
  • Loading branch information
ndyer committed Apr 26, 2016
1 parent 463e15e commit d691d3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/touchscreen/atmel_mxt_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -2817,12 +2817,12 @@ static int mxt_load_fw(struct device *dev)
return ret;
}

ret = mxt_enter_bootloader(data);
/* Check for incorrect enc file */
ret = mxt_check_firmware_format(dev, f.fw);
if (ret)
goto release_firmware;

/* Check for incorrect enc file */
ret = mxt_check_firmware_format(dev, f.fw);
ret = mxt_enter_bootloader(data);
if (ret)
goto release_firmware;

Expand Down

0 comments on commit d691d3e

Please sign in to comment.