mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
Merge tag 'gpio-fixes-for-v6.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fixes from Bartosz Golaszewski: - fix an uninitialized variable in GPIO swnode code - add a missing return value check for devm_mutex_init() - fix an old issue with debugfs output * tag 'gpio-fixes-for-v6.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpiolib: fix debugfs dangling chip separator gpiolib: fix debugfs newline separators gpio: sloppy-logic-analyzer: Check for error code from devm_mutex_init() call gpio: fix uninit-value in swnode_find_gpio
This commit is contained in:
@@ -234,7 +234,9 @@ static int gpio_la_poll_probe(struct platform_device *pdev)
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
|
||||
devm_mutex_init(dev, &priv->blob_lock);
|
||||
ret = devm_mutex_init(dev, &priv->blob_lock);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
fops_buf_size_set(priv, GPIO_LA_DEFAULT_BUF_SIZE);
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ struct gpio_desc *swnode_find_gpio(struct fwnode_handle *fwnode,
|
||||
struct fwnode_reference_args args;
|
||||
struct gpio_desc *desc;
|
||||
char propname[32]; /* 32 is max size of property name */
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
swnode = to_software_node(fwnode);
|
||||
if (!swnode)
|
||||
|
||||
@@ -4926,6 +4926,8 @@ static void *gpiolib_seq_start(struct seq_file *s, loff_t *pos)
|
||||
return NULL;
|
||||
|
||||
s->private = priv;
|
||||
if (*pos > 0)
|
||||
priv->newline = true;
|
||||
priv->idx = srcu_read_lock(&gpio_devices_srcu);
|
||||
|
||||
list_for_each_entry_srcu(gdev, &gpio_devices, list,
|
||||
@@ -4969,7 +4971,7 @@ static int gpiolib_seq_show(struct seq_file *s, void *v)
|
||||
|
||||
gc = srcu_dereference(gdev->chip, &gdev->srcu);
|
||||
if (!gc) {
|
||||
seq_printf(s, "%s%s: (dangling chip)",
|
||||
seq_printf(s, "%s%s: (dangling chip)\n",
|
||||
priv->newline ? "\n" : "",
|
||||
dev_name(&gdev->dev));
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user