android_kernel_xiaomi_sdm845/drivers/scsi/libfc
Vasu Dev 10897ae71d [SCSI] libfc: call ddp setup for only FCP reads to avoid accessing junk fsp pointer
Adds check to call fc_fcp_ddp_setup for only FCP read cmds to avoid
accessing junk fsp pointer at least in ESX since non FCP frame had
junk fsp value, though fsp is implicitly initialized to null
by __alloc_skb but with this patch no more relying on fsp
initialized to null value and hitting junk fsp ptr access.

Removes fsp pointer checking in fc_fcp_ddp_setup as this is not
needed any more since its only caller for FCP read will always
have a valid fsp.

Reported by: Frank Zhang <frank_1.zhang@intel.com>
Reported by: Rob Love <robert.w.love@intel.com>
Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-02-17 09:56:57 -06:00
..
fc_disc.c [SCSI] libfc fcoe: increase ELS and CT timeouts 2009-12-04 12:01:27 -06:00
fc_elsct.c [SCSI] libfc: fix fc_els_resp_type to correct display of CT responses 2009-12-04 12:01:17 -06:00
fc_exch.c [SCSI] libfc: call ddp setup for only FCP reads to avoid accessing junk fsp pointer 2010-02-17 09:56:57 -06:00
fc_fcp.c [SCSI] libfc: call ddp setup for only FCP reads to avoid accessing junk fsp pointer 2010-02-17 09:56:57 -06:00
fc_frame.c [SCSI] libfc, fcoe: fixes for highmem skb linearize panics 2009-12-04 12:01:25 -06:00
fc_libfc.c [SCSI] libfc: Formatting cleanups across libfc 2009-12-04 12:01:07 -06:00
fc_libfc.h [SCSI] libfc: Formatting cleanups across libfc 2009-12-04 12:01:07 -06:00
fc_lport.c [SCSI] fcoe, libfc: adds enable/disable for fcoe interface 2009-12-12 16:30:34 -06:00
fc_npiv.c [SCSI] libfc: vport link handling and fc_vport state managment 2009-12-04 12:00:57 -06:00
fc_rport.c [SCSI] libfc: remote port gets stuck in restart state without really restarting 2009-12-12 16:29:47 -06:00
Makefile [SCSI] libfc: add some generic NPIV support routines to libfc 2009-12-04 12:00:56 -06:00