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/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/kernel/events/core.c:5348:6-30: WARNING: atomic_dec_and_test variation before object free at line 5351. /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:1523:4-22: opportunity for str_plural(MAX_U_SERIAL_PORTS) /home/cocci/testing/drivers/usb/usbip/vhci_hcd.c:1456: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:2969:8-14: ERROR: reference preceded by free on line 2969 /home/cocci/testing/fs/smb/client/smb2pdu.c:2982:7-13: ERROR: reference preceded by free on line 2969 /home/cocci/testing/fs/smb/client/smb2pdu.c:2969:8-14: ERROR: reference preceded by free on line 2982 /home/cocci/testing/fs/smb/client/smb2pdu.c:2982:7-13: ERROR: reference preceded by free on line 2982 /home/cocci/testing/drivers/spmi/spmi-pmic-arb.c:1773:1-33: WARNING: Function "for_each_available_child_of_node" should have of_node_put() before return around line 1777. /home/cocci/testing/fs/file.c:222:2-8: preceding lock on line 232 /home/cocci/testing/fs/file.c:226:2-8: preceding lock on line 232 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9295:2-8: preceding lock on line 9275 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:4021:1-7: preceding lock on line 3996 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_vf_lib.c:965:1-7: preceding lock on line 858 /home/cocci/testing/fs/bcachefs/fs.c:396:1-7: preceding lock on line 340 /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:1456:9-34: WARNING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is nested IRQ) /home/cocci/testing/fs/bcachefs/disk_accounting.c:136:5-8: Unneeded variable: "ret". Return "0" on line 184 /home/cocci/testing/drivers/gpu/drm/xe/xe_rtp.c:199:2-3: Unneeded semicolon /home/cocci/testing/drivers/android/binder.c:1606:19-23: ERROR: from is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:2975:19-23: ERROR: from is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:3070:29-33: ERROR: target_thread is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:5052:16-20: ERROR: t is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:5083: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:2304:26-36: ERROR: node -> proc is NULL but dereferenced. /home/cocci/testing/drivers/android/binder.c:2311:26-36: ERROR: node -> proc is NULL but dereferenced. /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:581:51-52: duplicated argument to & or | /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:582:25-26: duplicated argument to & or | /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:582:52-53: duplicated argument to & or | /home/cocci/testing/drivers/gpu/drm/i915/display/intel_pps.c:585: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