Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting it. /home/cocci/testing/kernel/events/core.c:5348:6-30: WARNING: atomic_dec_and_test variation before object free at line 5351. /home/cocci/testing/drivers/usb/gadget/function/f_fs.c:2166:5-24: WARNING: atomic_dec_and_test variation before object free at line 2176. /home/cocci/testing/drivers/fsi/fsi-master-ast-cf.c:1086:8-16: WARNING: please use sysfs_emit or sysfs_emit_at /home/cocci/testing/drivers/fsi/fsi-master-gpio.c:721:8-16: WARNING: please use sysfs_emit or sysfs_emit_at warning: line 134: should no_llseek be a metavariable? warning: line 141: should noop_llseek be a metavariable? warning: line 223: should nonseekable_open be a metavariable? warning: line 290: should nonseekable_open be a metavariable? warning: line 338: should nonseekable_open be a metavariable? /home/cocci/testing/drivers/usb/gadget/function/u_serial.c:1522:4-22: opportunity for str_plural(MAX_U_SERIAL_PORTS) /home/cocci/testing/drivers/usb/usbip/vhci_hcd.c:1453:16-25: opportunity for str_plural(connected) /home/cocci/testing/io_uring/net.c:193:3-8: WARNING: NULL check before some freeing functions is not needed. /home/cocci/testing/drivers/spi/spidev.c:669:18-24: ERROR: reference preceded by free on line 663 /home/cocci/testing/drivers/cpufreq/intel_pstate.c:3115:14-31: ERROR: reference preceded by free on line 3114 /home/cocci/testing/fs/smb/client/smb2pdu.c:2966:8-14: ERROR: reference preceded by free on line 2966 /home/cocci/testing/fs/smb/client/smb2pdu.c:2979:7-13: ERROR: reference preceded by free on line 2966 /home/cocci/testing/fs/smb/client/smb2pdu.c:2966:8-14: ERROR: reference preceded by free on line 2979 /home/cocci/testing/fs/smb/client/smb2pdu.c:2979:7-13: ERROR: reference preceded by free on line 2979 /home/cocci/testing/drivers/spmi/spmi-pmic-arb.c:1774:1-33: WARNING: Function "for_each_available_child_of_node" should have of_node_put() before return around line 1778. /home/cocci/testing/net/core/gro.c:36:25-29: ERROR: invalid reference to the index variable of the iterator on line 32 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_vf_lib.c:965:1-7: preceding lock on line 858 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:4021:1-7: preceding lock on line 3996 /home/cocci/testing/fs/file.c:226:2-8: preceding lock on line 236 /home/cocci/testing/fs/file.c:230:2-8: preceding lock on line 236 /home/cocci/testing/drivers/misc/eeprom/ee1004.c:276:2-8: preceding lock on line 265 /home/cocci/testing/drivers/usb/typec/ucsi/ucsi.c:243:2-8: preceding lock on line 238 /home/cocci/testing/drivers/usb/typec/ucsi/ucsi.c:247:2-8: preceding lock on line 238 /home/cocci/testing/fs/bcachefs/fs.c:396:1-7: preceding lock on line 340 /home/cocci/testing/net/ethtool/ioctl.c:1596:1-7: preceding lock on line 1459 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9299:2-8: preceding lock on line 9279 /home/cocci/testing/drivers/net/ethernet/intel/iavf/iavf_main.c:2238:6-8: WARNING: possible condition with no effect (if == else) /home/cocci/testing/fs/bcachefs/bcachefs_format.h:182:8-17: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/fs/bcachefs/bcachefs_format.h:228:7-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/sound/soc/codecs/cs35l45.c:1463:9-34: WARNING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is nested IRQ) /home/cocci/testing/drivers/gpu/drm/xe/xe_rtp.c:199:2-3: Unneeded semicolon /home/cocci/testing/drivers/android/binder.c:1609:19-23: ERROR: from is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:2978:19-23: ERROR: from is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:3073:29-33: ERROR: target_thread is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:5055:16-20: ERROR: t is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:5086:17-21: ERROR: t is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:378:25-35: ERROR: node -> proc is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:2307:26-36: ERROR: node -> proc is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:2314:26-36: ERROR: node -> proc is NULL but dereferenced. /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:578:51-52: duplicated argument to & or | /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:579:25-26: duplicated argument to & or | /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:579:52-53: duplicated argument to & or | /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:582:26-27: duplicated argument to & or | /home/cocci/testing/drivers/scsi/sd.c:2445:6-16: WARNING: Unsigned expression compared with zero: the_result > 0