Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dba0ff46 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: composite: Use snprintf instead of sprintf"

parents 421069c9 5d2ac1aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2155,7 +2155,7 @@ static ssize_t suspended_show(struct device *dev, struct device_attribute *attr,
	struct usb_gadget *gadget = dev_to_usb_gadget(dev);
	struct usb_composite_dev *cdev = get_gadget_data(gadget);

	return sprintf(buf, "%d\n", cdev->suspended);
	return snprintf(buf, PAGE_SIZE, "%d\n", cdev->suspended);
}
static DEVICE_ATTR_RO(suspended);