Commit c1e2e44d authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/calibration.c: refuse to work with old calibration

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 96da921c
......@@ -176,6 +176,11 @@ int fd_handle_eeprom_calibration(struct fd_dev *fd)
hash, horig);
return -EINVAL;
}
if (calib->version < 3) {
dev_err(d, "Calibration version %i < 3: refusing to work\n",
fd->calib.version);
return -EINVAL;
}
if (calibration_save) {
/* FIXME: save to eeprom: re-convert endianness and hash */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment