Message ID | 20170323114549.GN32449@mwanda (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c index 9cf3d56296ab..c491ad8fb0a8 100644 --- a/drivers/scsi/fcoe/fcoe_sysfs.c +++ b/drivers/scsi/fcoe/fcoe_sysfs.c @@ -281,6 +281,7 @@ static ssize_t show_ctlr_mode(struct device *dev, "%s\n", name); } +#include "/home/dcarpenter/progs/smatch/devel/check_debug.h" static ssize_t store_ctlr_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) @@ -288,6 +289,7 @@ static ssize_t store_ctlr_mode(struct device *dev, struct fcoe_ctlr_device *ctlr = dev_to_ctlr(dev); char mode[FCOE_MAX_MODENAME_LEN + 1]; + __smatch_implied(count); if (count > FCOE_MAX_MODENAME_LEN) return -EINVAL;