summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2018-04-07 19:12:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-04 14:52:44 +0100
commit9de255666ce3729cdd50e7defb649b82dbb538f6 (patch)
treee63cb4965b19bf89e4be44a9dd7403f32231d68a /drivers/net
parent3c0cff34e91e4ea1fdf74df65db98ee455190dfa (diff)
tpm: tpm_crb: relinquish locality on error path.
[ Upstream commit 1fbad3028664e114d210dc65d768947a3a553eaa ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions