firmware_class: fix typo in error path