Merge tag 'v7.0-rc7' into char-misc-nextWe need the char/misc/iio/comedi fixes in here as well for testingSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
gpib: lpvo_usb: fix memory leak on disconnectThe driver iterates over the registered USB interfaces during GPIBattach and takes a reference to their USB devices until a match isfound. These refer
gpib: lpvo_usb: fix memory leak on disconnectThe driver iterates over the registered USB interfaces during GPIBattach and takes a reference to their USB devices until a match isfound. These references are never released which leads to a memory leakwhen devices are disconnected.Fix the leak by dropping the unnecessary references.Fixes: fce79512a96a ("staging: gpib: Add LPVO DIY USB GPIB driver")Cc: stable <stable@kernel.org> # 6.13Cc: Dave Penkler <dpenkler@gmail.com>Signed-off-by: Johan Hovold <johan@kernel.org>Link: https://patch.msgid.link/20260310105127.17538-1-johan@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
show more ...
gpib: lpvo_usb: rename driver symbol prefixThe LPVO driver apparently includes a more or less verbatim copy of theUSB skeleton driver.Replace the "skel_" symbol prefix with "lpvo_" and rename th
gpib: lpvo_usb: rename driver symbol prefixThe LPVO driver apparently includes a more or less verbatim copy of theUSB skeleton driver.Replace the "skel_" symbol prefix with "lpvo_" and rename the "usb_skel"struct "lpvo" to avoid symbol name clashes and make this a bit morepalatable.Signed-off-by: Johan Hovold <johan@kernel.org>Link: https://patch.msgid.link/20260305151729.10501-3-johan@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
gpib: lpvo_usb: fix unintended binding of FTDI 8U232AM devicesThe LPVO USB GPIB adapter apparently uses an FTDI 8U232AM with thedefault PID, but this device id is already handled by the ftdi_sios
gpib: lpvo_usb: fix unintended binding of FTDI 8U232AM devicesThe LPVO USB GPIB adapter apparently uses an FTDI 8U232AM with thedefault PID, but this device id is already handled by the ftdi_sioserial driver.Stop binding to the default PID to avoid breaking existing setups withFTDI 8U232AM.Anyone using this driver should blacklist the ftdi_sio driver and addthe device id manually through sysfs (e.g. using udev rules).Fixes: fce79512a96a ("staging: gpib: Add LPVO DIY USB GPIB driver")Fixes: e6ab504633e4 ("staging: gpib: Destage gpib")Cc: Dave Penkler <dpenkler@gmail.com>Cc: stable <stable@kernel.org>Signed-off-by: Johan Hovold <johan@kernel.org>Link: https://patch.msgid.link/20260305151729.10501-2-johan@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs
Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/'to convert the new alloc_obj() users that had a simple GFP_KERNELargument to just drop that argument.Note that due to the extreme simplicity of the scripting, any slightlymore complex cases spread over multiple lines would not be triggered:they definitely exist, but this covers the vast bulk of the cases, andthe resulting diff is also then easier to check automatically.For the same reason the 'flex' versions will be done as a separateconversion.Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid sc
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid scalar types (which need careful case-by-case checking), andinstead replace kmalloc-family calls that allocate struct or unionobject instances:Single allocations: kmalloc(sizeof(TYPE), ...)are replaced with: kmalloc_obj(TYPE, ...)Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)are replaced with: kmalloc_objs(TYPE, COUNT, ...)Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)(where TYPE may also be *VAR)The resulting allocations no longer return "void *", instead returning"TYPE *".Signed-off-by: Kees Cook <kees@kernel.org>
staging: gpib: Destage gpibMove the gpib drivers out of staging and into the "real" part of thekernel. This entails: - Remove the gpib Kconfig menu and Makefile build rule from staging. - Remo
staging: gpib: Destage gpibMove the gpib drivers out of staging and into the "real" part of thekernel. This entails: - Remove the gpib Kconfig menu and Makefile build rule from staging. - Remove gpib/uapi from the header file search path in subdir-ccflags of the gpib Makefile - move the gpib/uapi files to include/uapi/linux - Move the gpib tree out of staging to drivers. - Remove the word "Linux" from the gpib Kconfig file. - Add the gpib Kconfig menu and Makefile build rule to driversSigned-off-by: Dave Penkler <dpenkler@gmail.com>Link: https://patch.msgid.link/20251117144021.23569-5-dpenkler@gmail.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>