smatch stuff: fnic: VNIC_FNIC_EDTOV_MAX is too high.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a smatch thing.  Neither VNIC_FNIC_EDTOV_MAX nor
VNIC_FNIC_RATOV_MAX do anything.  They are both set to 255000 but ed_tov
and ra_tov are u16 so they can't go higher than 65535.

drivers/scsi/fnic/fnic_res.c
    95          c->ed_tov =
    96                  min_t(u32, VNIC_FNIC_EDTOV_MAX,
    97                        max_t(u32, VNIC_FNIC_EDTOV_MIN,
    98                              c->ed_tov));
    99
   100          c->ra_tov =
   101                  min_t(u32, VNIC_FNIC_RATOV_MAX,
   102                        max_t(u32, VNIC_FNIC_RATOV_MIN,
   103                              c->ra_tov));

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux