From: Hans de Goede Date: Sat, 13 Sep 2014 10:26:32 +0000 (+0200) Subject: uas: Do not use scsi_host_find_tag X-Git-Tag: fixes-for-v3.18-merge-window~16^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e61aede477ee108de3f9e57f19cacd8ce3ffe52;p=pandora-kernel.git uas: Do not use scsi_host_find_tag Using scsi_host_find_tag with tags returned by the device is unsafe for multiple reasons: 1) It returns tags->rqs[tag], which may be non NULL even when the cmnd is not owned by us 2) It returns tags->rqs[tag], without holding any locks protecting it 3) It returns tags->rqs[tag], without doing any boundary checking Instead keep our own list which maps tags -> inflight cmnds. Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed