Winkler, Tomas 1fbad30286 tpm: tpm_crb: relinquish locality on error path.
In crb_map_io() function, __crb_request_locality() is called prior
to crb_cmd_ready(), but if one of the consecutive function fails
the flow bails out instead of trying to relinquish locality.
This patch adds goto jump to __crb_relinquish_locality() on the error path.

Fixes: 888d867df441 (tpm: cmd_ready command can be issued only after granting locality)
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2018-05-10 01:33:00 +03:00
..
2018-02-06 09:59:40 -08:00
2018-03-14 19:13:47 +01:00
2017-08-28 17:11:28 +02:00
2018-04-04 20:07:20 -07:00
2018-03-26 15:56:35 +02:00
2011-03-31 11:26:23 -03:00
2016-01-22 18:04:28 -05:00
2011-01-10 08:51:44 -08:00