]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: lpfc: correct sg_seg_cnt attribute min vs default
authorJames Smart <jsmart2021@gmail.com>
Tue, 19 Dec 2017 18:57:50 +0000 (10:57 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 12:05:24 +0000 (07:05 -0500)
commitf414fb4ed3d50f85225eabafc9fec6459b756ed4
tree10bf2e5416a5498c64d0067767e4d3a997a71fb2
parent20e0355ddbed6794d4a0f49aa027aaf3e13875f0
scsi: lpfc: correct sg_seg_cnt attribute min vs default

BugLink: http://bugs.launchpad.net/bugs/1752182
Prior patch mixed up what argument in the macro was what, so min value
was placed as the "default" argument, and the default value was placed
as the "min" argument. Thus, when the default was applied, it looked
like the default was smaller than the allowed min.

Swap argument postions to correct.

[mkp: fixed checkpatch warning]

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit b996ce39960e6239d3d30745749b0b17239cadce)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/scsi/lpfc/lpfc_attr.c