diff options
author | Tejun Heo <tj@kernel.org> | 2009-09-03 16:08:11 +0900 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-09-08 21:17:43 -0400 |
commit | bd30add88cea831dfb854d564478f09ee66206b5 (patch) | |
tree | d0c0354920cd4b51812c51a68539c95e0bd71e90 /mm/rmap.c | |
parent | 72fee3823d2938fa98f2f3113301f46803f4c711 (diff) |
libata: unbreak TPM filtering by reorganizing ata_scsi_pass_thru()
ata_scsi_pass_thru() was checking for input sanity and disallowed
commands while initializaing qc from scmd. TPM filtering was added
right after protocol check at which point tf wasn't initialized
properly. This means that TPM filtering has never really worked.
This patch fixes the bug by reorganizing ata_scsi_pass_thru() such
that qc is fully initialized before checking for invalid conditions
which is way less error prone.
Discovered while Thilo-Alexander Ginkel was trying debug patches for
bko#13416.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Thilo-Alexander Ginkel <thilo@ginkel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions