[PATCH] staging: gasket: Fix mapping refcnt leak when register/store fails

2020-04-22 Thread Xiyu Yang
gasket_sysfs_register_store() invokes get_mapping(), which returns a reference of the specified gasket_sysfs_mapping object to "mapping" with increased refcnt. When gasket_sysfs_register_store() returns, local variable "mapping" becomes invalid, so the refcount should be decreased to keep

[PATCH] staging: gasket: Fix mapping refcnt leak when put attribute fails

2020-04-22 Thread Xiyu Yang
gasket_sysfs_put_attr() invokes get_mapping(), which returns a reference of the specified gasket_sysfs_mapping object to "mapping" with increased refcnt. When gasket_sysfs_put_attr() returns, local variable "mapping" becomes invalid, so the refcount should be decreased to keep refcount balanced.

[PATCH] staging: wfx: cleanup long lines in data_tx.c

2020-04-22 Thread Suraj Upadhyay
Break lines with length over 80 characters to conform to the linux coding style. Issue found by checkpatch. Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/data_tx.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git

Re: [PATCH v2] Staging: rtl8723bs: rtw_wlan_util: Add size check of SSID IE

2020-04-22 Thread Dan Carpenter
Thanks! Reviewed-by: Dan Carpenter regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel