* [PATCH] bfa: fix test in bfad_os_fc_host_init()
@ 2009-10-15 18:15 Roel Kluin
2009-10-15 18:28 ` Jing Huang
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-10-15 18:15 UTC (permalink / raw)
To: huangj, linux-scsi, Andrew Morton
BFA_PORT_ROLE_FCP_IPFC is 0x04 so this always evaluates to true
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
see vi drivers/scsi/bfa/include/defs/bfa_defs_port.h +45
was this intended?
diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c
index 158c992..55d012a 100644
--- a/drivers/scsi/bfa/bfad_im.c
+++ b/drivers/scsi/bfa/bfad_im.c
@@ -948,7 +948,7 @@ bfad_os_fc_host_init(struct bfad_im_port_s *im_port)
if (bfad_supported_fc4s & (BFA_PORT_ROLE_FCP_IM | BFA_PORT_ROLE_FCP_TM))
/* For FCP type 0x08 */
fc_host_supported_fc4s(host)[2] = 1;
- if (bfad_supported_fc4s | BFA_PORT_ROLE_FCP_IPFC)
+ if (bfad_supported_fc4s & BFA_PORT_ROLE_FCP_IPFC)
/* For LLC/SNAP type 0x05 */
fc_host_supported_fc4s(host)[3] = 0x20;
/* For fibre channel services type 0x20 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] bfa: fix test in bfad_os_fc_host_init()
2009-10-15 18:15 [PATCH] bfa: fix test in bfad_os_fc_host_init() Roel Kluin
@ 2009-10-15 18:28 ` Jing Huang
0 siblings, 0 replies; 2+ messages in thread
From: Jing Huang @ 2009-10-15 18:28 UTC (permalink / raw)
To: Roel Kluin, linux-scsi@vger.kernel.org, Andrew Morton
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> see vi drivers/scsi/bfa/include/defs/bfa_defs_port.h +45
> was this intended?
>
> diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c
> index 158c992..55d012a 100644
> --- a/drivers/scsi/bfa/bfad_im.c
> +++ b/drivers/scsi/bfa/bfad_im.c
> @@ -948,7 +948,7 @@ bfad_os_fc_host_init(struct bfad_im_port_s *im_port)
> if (bfad_supported_fc4s & (BFA_PORT_ROLE_FCP_IM |
> BFA_PORT_ROLE_FCP_TM))
> /* For FCP type 0x08 */
> fc_host_supported_fc4s(host)[2] = 1;
> - if (bfad_supported_fc4s | BFA_PORT_ROLE_FCP_IPFC)
> + if (bfad_supported_fc4s & BFA_PORT_ROLE_FCP_IPFC)
> /* For LLC/SNAP type 0x05 */
> fc_host_supported_fc4s(host)[3] = 0x20;
> /* For fibre channel services type 0x20 */
This is a bug. Thanks!
Jing
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-15 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-15 18:15 [PATCH] bfa: fix test in bfad_os_fc_host_init() Roel Kluin
2009-10-15 18:28 ` Jing Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox