No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Coccinellery
Latest commit 989b853 Oct 5, 2017
Permalink
Failed to load latest commit information.
9p #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
CONTRIB add: rc20 compatibility Aug 2, 2014
aaci #Linux# Bad NULL test Aug 10, 2016
acl #Linux# Add missing call to posix_acl_release Aug 10, 2016
acpi #Linux# Dereference without an error test Aug 10, 2016
acpid #Linux# Drop uses of acpi_driver_data Aug 10, 2016
after_netif #Linux# Fix use of skb after netif_rx Aug 10, 2016
ainerr #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
alloc9 #Linux# Eliminate memory leak Aug 10, 2016
alloc_cast #Linux# Drop memory allocation cast Aug 10, 2016
alloc_domain #Linux# Add missing free_domain_mem Aug 10, 2016
alloc_etherdev #Linux# Adjust error handling after call to alloc_etherdev() Aug 10, 2016
alloc_tty #Linux# add missing put_tty_driver Aug 10, 2016
allocs #Linux# Add missing fput Aug 10, 2016
array_and_size #Linux# use ARRAY_AND_SIZE consistently Aug 10, 2016
arraysize #Linux# Use ARRAY_SIZE Aug 10, 2016
arraytest #Linux# delete unnecessary null test on array Aug 10, 2016
arref #Linux, Generic# Adjust array index Aug 10, 2016
asprintf #Linux# Use kasprintf Aug 10, 2016
atm #Linux# add missing atm_dev_put Aug 10, 2016
auth #Linux# Adjust error handling code involving auth_domain_put Aug 10, 2016
badand #Linux, Generic# Convert && to || Aug 10, 2016
badcheck #Linux# fix devm_ioremap_resource error detection code Aug 10, 2016
badftest #Linux# Correct NULL test Aug 10, 2016
badkm #Linux# Initialize return variable with error code Aug 10, 2016
badkm2 svn mirror - Sun Mar 5 22:00:07 CET 2017 Mar 5, 2017
badktest #Linux# Correct NULL test Aug 10, 2016
badmsg #Linux# Return -ENOMEM on memory allocation failure Aug 10, 2016
badmsg3 #Linux# Correct return value on error handling Aug 10, 2016
badpt #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
badty #Linux# Correct the size argument to kzalloc Aug 10, 2016
bitcall #Linux, Generic# convert & to && Aug 10, 2016
bits #Linux# Correct use of ! and & Aug 10, 2016
bits2 #Linux# Correct use of ! and & Aug 10, 2016
block_nil #Linux# use BLOCK_NIL Aug 10, 2016
bo #Linux# use BUG_ON Aug 10, 2016
bond #Linux# Adjust constant name Aug 10, 2016
bootmem #Linux# Eliminate NULL test and memset after alloc_bootmem Aug 10, 2016
bootmem2 #Linux# Eliminate NULL test and memset after alloc_bootmem Aug 10, 2016
bss #Linux# Add missing call to cfg80211_put_bss Aug 10, 2016
btrfs #Linux# Add missing btrfs_free_path Aug 10, 2016
bugon #Linux# Use BUG_ON Aug 10, 2016
c99 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
cache #Linux# Use kmem_cache_free Aug 10, 2016
call_kern1 #Linux# Use GFP_ATOMIC when a lock is held Aug 10, 2016
call_kern3 #Linux# Use GFP_ATOMIC when a lock is held Aug 10, 2016
capi #Linux# Adjust error handling code involving capi_ctr_put Aug 10, 2016
castnet #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
checkdoc #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Oct 2, 2016
clkderef #Linux# Use clk API instead of direct dereferences Aug 10, 2016
clkput #Linux# Add missing clk_put Aug 10, 2016
comma #Linux# convert comma to semicolon Aug 10, 2016
compare #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
const_component_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Nov 12, 2016
const_dvb_tuner_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 11, 2016
const_ethtool #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 31, 2016
const_fb_fix_screeninfo #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 11, 2016
const_gpio_chip #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 11, 2016
const_i2c_adapter_quirks #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Oct 15, 2016
const_i2c_algo #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 29, 2016
const_iio_info #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 16, 2016
const_l3mdev_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Oct 15, 2016
const_net_device_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 16, 2016
const_pinctrl #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 1, 2016
const_rtc_class_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 31, 2016
const_snd_pcm_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 2, 2016
const_snd_soc_codec_driver #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 1, 2016
const_snd_soc_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Oct 15, 2016
const_uart #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 1, 2016
const_watchdog_ops #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Sep 1, 2016
consts #Linux# use the constant InterlaceMode Aug 10, 2016
countptr #Linux# Remove exceptional & on function name Aug 10, 2016
cpu #Linux# Adjust error handling code involving cpufreq_cpu_put Aug 10, 2016
cpu_mask #Linux# Use set_cpus_allowed_ptr Aug 10, 2016
cpufreq #Linux# Add calls to cpufreq_cpu_put Aug 10, 2016
cris #Linux# Use mutex_unlock rather than spin_unlock Aug 10, 2016
crypto #Linux# Add NULL test around call to crypto_free_hash Aug 10, 2016
cspage #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
cstptr #Linux# Move call to PTR_ERR after reassignment Aug 10, 2016
ctu #Linux# Initialize all fields Aug 10, 2016
da #Linux, Generic# Correct double assignment Aug 10, 2016
da2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
dall #Linux# Use devm_ functions consistently Aug 10, 2016
dangling #Linux# Remove potential for use after free Aug 10, 2016
dca #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
delt #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
deltr #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
depspin #Linux# Use DEFINE_SPINLOCK Aug 10, 2016
derefnull #Linux# Detect null dereference and unnecessary test Aug 10, 2016
destroy #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
device_attrs #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Oct 29, 2016
device_attrs2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Dec 22, 2016
devm2 #Linux# Use devm_ functions Aug 10, 2016
devm2a #Linux# use devm_ functions Aug 10, 2016
devm2b #Linux# Use devm_ functions Aug 10, 2016
devm2i_0729 #Linux# Use devm_ functions Aug 10, 2016
devm2i_0730 #Linux# Use devm_ functions Aug 10, 2016
devm2i_0731 #Linux# Use devm_ functions Aug 10, 2016
devm2i_aug25 #Linux# Use devm_ functions Aug 10, 2016
devm4 #Linux# Drop iounmap for devm_ allocated data Aug 10, 2016
devm6 #Linux# Use devm_request_and_ioremap Aug 10, 2016
devmir #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
devname #Linux, Generic# Eliminate NULL dereference Aug 10, 2016
diou #Linux# drop kfree of devm_kzalloc's data Aug 10, 2016
diou2 #Linux# Drop devm_kfree of devm_kzalloc'd data Aug 10, 2016
diou3 #Linux# Some devm_ cleanups Aug 10, 2016
dma #Linux# Avoid using magic number in set_dma_mode Aug 10, 2016
dmaz #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
double_call #Linux, Generic# Eliminate useless code Aug 10, 2016
double_error_check #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
double_lock #Linux# Eliminate a double lock Aug 10, 2016
double_null #Linux, Generic# Correct NULL test Aug 10, 2016
double_test #Linux# Introduce missing initialization Aug 10, 2016
doublefree #Linux# Eliminate double kfree Aug 10, 2016
doubleinit #Linux, Generic# Remove duplicate structure field initialization Aug 10, 2016
doublermr #Linux# Improve error handling Aug 10, 2016
doubleskb #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
doubletest #Linux# Remove double test Aug 10, 2016
doubletest_high #Linux, Generic# Adjust double test Aug 10, 2016
drop_continue #Linux, Generic# Drop unnecessary continue Aug 10, 2016
drvdata #Linux# Use dev_set_drvdata Aug 10, 2016
dst #Linux# Use dst_type field instead of type_flags Aug 10, 2016
enter #Linux# Convert func_enter to func_exit Aug 10, 2016
epd #Linux# Use USB API functions rather than constants Aug 10, 2016
epdneg #Linux# Use negated usb_endpoint_xfer_control, etc Aug 10, 2016
errcast #Linux# use ERR_CAST Aug 10, 2016
eth64 #Linux# use ether_addr_equal_64bits Aug 10, 2016
even_more_pci #Linux# Add missing pci_dev_get Aug 10, 2016
exact #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
export5 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
export_static #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
extra_put #Linux# Drop unneeded of_node_put Aug 10, 2016
fbrelease #Linux# eliminate double free Aug 10, 2016
fen #Linux# Drop unnecessary of_node_put Aug 10, 2016
ffz #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Jun 8, 2014
fields #Linux# Use FIELD_SIZEOF Aug 10, 2016
for_each_child1 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
for_each_child2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
for_each_child5 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
free_irq #Linux# Reposition free_irq to avoid access to invalid data Aug 10, 2016
freenull #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
frfr #Linux# Eliminate double free Aug 10, 2016
ftl #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Nov 11, 2016
func #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
fuse #Linux# Add missing fuse_request_alloc Aug 10, 2016
gdth #Linux# Add missing call to gdth_ioctl_free Aug 10, 2016
getprop #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
getprop2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
gfs2 #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
gmc #Linux# Avoid call to genlmsg_cancel Aug 10, 2016
handle #Linux# Adjust error handling code Aug 10, 2016
hrtimer #Linux# Use function hrtimer_is_queued Aug 10, 2016
i2c_msg #Linux# Use macros for i2c_msg initialization Aug 10, 2016
i915 #Linux# Add missing error handling code Aug 10, 2016
ie2 #Linux# Convert IS_ERR result to PTR_ERR Aug 10, 2016
if-semicolon #Linux, Generic# Detect semicolon after if Aug 10, 2016
ifcol #Linux# Adjust confusing if indentation Aug 10, 2016
iff #Linux# Fix error return code Aug 10, 2016
ifseqerr #Linux, Generic# Remove unnecessary error check Aug 10, 2016
incon #Linux# eliminate possible double free Aug 10, 2016
infiniband #Linux# Use a NULL test rather than an IS_ERR test Aug 10, 2016
init #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
input #Linux# Correct call to input_free_device Aug 10, 2016
iom #Linux# Add missing iounmap Aug 10, 2016
ioremap2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
iounmap #Linux# Add missing iounmap Aug 10, 2016
is_static #Linux# Make some structures static Aug 10, 2016
iserr #Linux# Simplify error handling Aug 10, 2016
iserr_cata #Linux# Correct error-handling code Aug 10, 2016
iserr_ref #Linux# Correct an error check Aug 10, 2016
iserreq #Linux# use PTR_ERR to get error code Aug 10, 2016
isnull_oct #Linux# Eliminate a null pointer dereference Aug 10, 2016
isnullo #Linux, Generic# Keep pointer to resource so it can be freed Aug 10, 2016
itnull #Linux# Drop unnecessary null test Aug 10, 2016
iwcontainer #Linux# Drop unnecessary NULL test Aug 10, 2016
jiffies #Linux# Use time_before, time_before_eq, etc Aug 10, 2016
k-zc-alloc #Linux# Transform some kzalloc calls to kcalloc Aug 10, 2016
kasp #Linux# Eliminate kstrdup memory leak Aug 10, 2016
kasprintf2 #Linux# Use kstrdup Aug 10, 2016
kc #Linux# Use kzalloc for allocating only one thing Aug 10, 2016
kfree3 #Linux# Introduce missing kfree Aug 10, 2016
kfree_after #Linux, Generic# Adjust error handling code Aug 10, 2016
kfree_after2 #Linux# Remove unneeded kfree Aug 10, 2016
kfree_skb #Linux# Convert kfree/kfree_skb to dev_kfree_skb_irq Aug 10, 2016
kfrees #Linux# Introduce missing kfree Aug 10, 2016
kmalloc9 #Linux# Add missing kfree Aug 10, 2016
kmc1 #Linux# Free kmem_cache_zalloc'd data using kmem_cache_free Aug 10, 2016
kmc1a #Linux# eliminate NULL pointer dereference Aug 10, 2016
kmerr1 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
kmerr2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
kmerr3 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
kmtest #Linux# Add kmalloc NULL tests Aug 10, 2016
knav #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Nov 16, 2016
kstr #Linux# Use kstrtoul, etc Aug 10, 2016
kstrdup #Linux# Use kstrdup Aug 10, 2016
kzif #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
label1 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
label2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
lcd #Linux# Bad error test before a dereference Aug 10, 2016
lenull #Linux# Drop NULL test on list_entry result Aug 10, 2016
leq #Linux# Use ERR_PTR/IS_ERR Aug 10, 2016
lfee #Linux# Remove invalid reference to list iterator variable Aug 10, 2016
list_entry #Linux# Use list_for_each_entry instead of list_for_each Aug 10, 2016
list_entry_update #Linux# Eliminate update of list_for_each_entry loop cursor Aug 10, 2016
listfree #Linux# Avoid leaving freed data in a list Aug 10, 2016
local #Linux# Add local_irq_restore in error handling code Aug 10, 2016
lock #Linux# Unlock the lock that was locked Aug 10, 2016
lock_flags #Linux# Convert nested spin_lock_irqsave to spin_lock Aug 10, 2016
lustre1 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
lustre2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
lustre3 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
map_destroy #Linux# avoid calling map_destroy on NULL Aug 10, 2016
markbusy #Linux# Use usb_mark_last_busy Aug 10, 2016
mdiobus_unregister #Linux# Call mdiobus_unregister before mdiobus_free Aug 10, 2016
mem2 #Linux# drop redundant memset Aug 10, 2016
memdup #Linux# Use kmemdup instead of allocate and memcpy Aug 10, 2016
memdup_user #Linux# Use memdup_user Aug 10, 2016
memuser #Linux# Add missing kfree Aug 10, 2016
memzero #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
mesh #Linux# Correct the argument to __mesh_table_free Aug 10, 2016
mini_lock #Linux# Add missing spin_unlock Aug 10, 2016
mini_null #Linux# Move a dereference below a NULL test Aug 10, 2016
mini_null3 #Linux, Generic# Move a dereference below a NULL test Aug 10, 2016
mini_null_check #Linux# Drop an unneeded a NULL test Aug 10, 2016
mini_null_ref_aug10 #Linux# Remove potential NULL dereference Aug 10, 2016
mini_null_ref_aug14 #Linux, Generic# Remove potential NULL dereferences Aug 10, 2016
misaligned #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
misc_undo #Linux# Add missing snd_card_free Aug 10, 2016
missing_put #Linux# Add missing of_node_put Aug 10, 2016
moduleparam #Linux# Drop redundant includes of moduleparam.h Aug 10, 2016
more_of_noput #Linux# Add missing of_node_put Aug 10, 2016
more_pci #Linux# Add missing pci_dev_get Aug 10, 2016
mutex #Linux# Release mutex in error handling code Aug 10, 2016
mutex2 #Linux# Call mutex_unlock in error handling code Aug 10, 2016
ndp #Linux# delete useless tests on netdev_priv Aug 10, 2016
noderef #Linux# Correct size computation Aug 10, 2016
noderef2 #Linux# Correct size given to memset Aug 10, 2016
nonet #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
nopl #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
noreq #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
notnull #Linux, Generic# Correct redundant test Aug 10, 2016
null_ref #Linux# Move dereference after NULL test Aug 10, 2016
null_ref2 #Linux# Adjust NULL test Aug 10, 2016
obdalloc #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
obdalloc3 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
obdalloclarge #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
obdcpt #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
obdfree #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
oddpe #Linux# adjust inconsistent IS_ERR and PTR_ERR Aug 10, 2016
of_noput #Linux# Add missing of_node_put Aug 10, 2016
offset #Linux# Use offsetof Aug 10, 2016
ofiomap #Linux# Add missing iounmap Aug 10, 2016
ofnametype #Linux# add missing of_node_put Aug 10, 2016
ofnodeget #Linux# Add of_node_put to avoid memory leak Aug 10, 2016
ofnodeget3 #Linux# Add of_node_put to avoid memory leak Aug 10, 2016
ofnodeget4 #Linux# Add of_node_put to avoid memory leak Aug 10, 2016
ofredef #Linux# Add missing of_node_put Aug 10, 2016
onp #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
orplus2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
osdi_isnull #Linux# Eliminate a NULL pointer dereference Aug 10, 2016
osdi_kfree #Linux# Eliminate use after free Aug 10, 2016
parport #Linux# Put gotten port value Aug 10, 2016
parse_phandle #Linux# Add missing of_node_put Aug 10, 2016
pci_add_put #Linux# Add missing pci_dev_put Aug 10, 2016
pci_drop_put #Linux# Drop unnecessary pci_dev_put Aug 10, 2016
pcicst #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
pciom #Linux# Exchange pci_iounmaps Aug 10, 2016
pcipower #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
pcr #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
pd #Linux# Invert calls to platform_device_put and platform_device_del Aug 10, 2016
pfc0 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
platret #Linux# failure test for null rather than negative integer Aug 10, 2016
pointless_err #Linux# Use ERR_CAST Aug 10, 2016
prepare2 #Linux# use clk_prepare_enable and clk_disable_unprepare Aug 10, 2016
ptr #Linux# Correct error handling code Aug 10, 2016
ptrerr #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
put_after #Linux# Add missing of_node_put Aug 10, 2016
put_deref #Linux# Move of_node_put Aug 10, 2016
putty #Linux# Avoid calling put_tty_driver on NULL Aug 10, 2016
rcu #Linux# Call rcu_read_unlock in default case Aug 10, 2016
reiserfs #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
remap_bar #Linux# Reorder error handling code to include iounmap Aug 10, 2016
remove #Linux# Drop return value from platform_driver remove functions Aug 10, 2016
removed #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
reqrel2 #Linux# Use release_mem_region after request_mem_region Aug 10, 2016
requests #Linux# use devm_kzalloc and devm_clk_get Aug 10, 2016
resource #Linux# Convert release_resource to release_region/release_mem_region Aug 10, 2016
resource_fix1 #Linux# Convert release_resource to release_mem_region Aug 10, 2016
resource_size #Linux# Use resource_size Aug 10, 2016
ret0 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
ret3 #Linux# Fix error return code Aug 10, 2016
ret4 #Linux# Fix error return code Aug 10, 2016
ret6 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
retalloc #Linux# Fix error return code Aug 10, 2016
retest #Linux# Adjust duplicate test Aug 10, 2016
rirqp #Linux# Ensure arguments to request_irq and free_irq are compatible Aug 10, 2016
round #Linux# Use DIV_ROUND_UP Aug 10, 2016
round2 #Linux# Use DIV_ROUND_UP Aug 10, 2016
round_closest #Linux# Use DIV_ROUND_CLOSEST Aug 10, 2016
rr #Linux# Correct use of request_region/request_mem_region Aug 10, 2016
rxrpc #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
s390 #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
semicolon #Linux, Generic# Remove unnecessary semicolon Aug 10, 2016
serial_core #Linux# Use UPIO_MEM rather than SERIAL_IO_MEM Aug 10, 2016
setup_timer #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
signed #Linux, Generic# Use unsigned for loop index Aug 10, 2016
simple_kzalloc #Linux# Use kzalloc instead of kmalloc and memset Aug 10, 2016
simplify_ioremap_resource #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
sin_family #Linux# Use AF_INET for sin_family field Aug 10, 2016
sizeof #Linux, Generic# Eliminate double sizeof Aug 10, 2016
sizeof_notype #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
sla #Linux# Use GFP_ATOMIC when a lock is held Aug 10, 2016
slot #Linux# Add missing pci_dev_put Aug 10, 2016
soc_sound #Linux# Useless NULL test Aug 10, 2016
sockfd #Linux# Use sockfd_put Aug 10, 2016
static2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… May 5, 2017
stest #Linux# Put NULL test before dereference Aug 10, 2016
strsize #Linux# Convert strncmp to strcmp Aug 10, 2016
strtoul #Linux# Change simple_strtol to simple_strtoul Aug 10, 2016
sz #Linux, Generic# Correct code taking the size of a pointer Aug 10, 2016
sz3 #Linux, Generic# Take size of pointed value, not pointer Aug 10, 2016
testeno #Linux# correct error check Aug 10, 2016
tinit #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
tipc #Linux# Use tipc_port_unlock Aug 10, 2016
tty_port #Linux# Put correct tty value Aug 10, 2016
typedef #Linux# Remove typedef STORVSC_REQUEST and PSTORVSC_REQUEST Aug 10, 2016
ubi #Linux# Bad IS_ERR test Aug 10, 2016
ubifs #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
ulfe #Linux# Use list_for_each_entry Aug 10, 2016
unarray #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
undevm #Linux# Kfree etc should not be used with devm functions Aug 10, 2016
unsf #Linux, Generic# Fix return value from an unsigned function Aug 10, 2016
unused #Linux# Remove unused variable Aug 10, 2016
unused_err #Linux, Generic# Use available error codes Aug 10, 2016
unused_var_kfree #Linux# Remove unused variables and useless calls to kfree Aug 10, 2016
urb2 #Linux# Delete unnecessary call to usb_kill_urb Aug 10, 2016
urb8 #Linux# Introduce missing usb_free_urb Aug 10, 2016
usb #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
usbdata #Linux# Use usb_set/get_intfdata Aug 10, 2016
usbdir #Linux# Use usb_endpoint_dir_out Aug 10, 2016
use_freed_specific #Linux# Eliminate use after free Aug 10, 2016
usefreed #Linux# Correct use after free Aug 10, 2016
useless2 #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
uselesskfree #Linux# Remove useless kfree Aug 10, 2016
usnic #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Nov 11, 2016
video #Linux# Use video_device_release rather than kfree Aug 10, 2016
videobuf_dvb_get_frontend_return_null #Linux# Test if videobuf_dvb_get_frontend return NULL Aug 10, 2016
warn #Linux# Use WARN Aug 10, 2016
warn2 #Linux# Drop if around WARN_ON Aug 10, 2016
write2 #Linux, Generic# delete double assignment Aug 10, 2016
wrongcheck #Not available\ncoccinellery-short = Not available\ncoccinellery-copy… Aug 10, 2016
wrongtest #Linux# Test the just-initialized value Aug 10, 2016
x25 #Linux# Add missing x25_neigh_put Aug 10, 2016
xand #Linux, Generic# Detect duplicated test Aug 10, 2016
xfrm #Linux# Use an IS_ERR test rather than a NULL test Aug 10, 2016
zercst #Linux# Adjust suspicious bit operation Aug 10, 2016
zero #Linux# Possible problem with V4L2_TUNER_MODE_MONO Aug 10, 2016
LICENSE Updated LICENSE file Mar 13, 2013
README text index - Thu Oct 5 22:00:57 CEST 2017 Oct 5, 2017
targets Added Firehose target Aug 9, 2013

README

Coccinellery: A gallery of semantic patches for use with Coccinelle
http://coccinellery.org/

Coccinellery Links
Github repository: https://github.com/coccinelle/coccinellery
Download all files (zip): https://github.com/coccinelle/coccinellery/archive/master.zip

Coccinelle Info
Coccinelle Home: http://coccinelle.lip6.fr/
Contacts: http://coccinelle.lip6.fr/contact.php

This is a gallery of semantic patches for use with Coccinelle
(http://coccinelle.lip6.fr/). They are extracted automatically from a
collection of semantic patches that have been used to create patches for the
Linux Kernel and other software. The descriptions are derived from the commit
messages contained in those patches. There is no guarantee that the
descriptions are correct or understandable, and no guarantee that the semantic
patches are correct, complete, or work with the latest version of Coccinelle.
Comments and corrections may be sent to the Coccinelle mailing list:
cocci@systeme.lip6.fr / https://systeme.lip6.fr/mailman/listinfo/cocci.

To propose new semantic patches to be added to the gallery, please make a pull
request (https://help.github.com/articles/fork-a-repo) via Github to
Coccinellery repository (https://github.com/coccinelle/coccinellery). When
adding new semantic patches, please create a folder for you under the CONTRIB
directory. Detailed instructions on the README file of the CONTRIB directory.

The semantic patches are licensed under the permissive ISC license. More info
at LICENSE file or http://www.isc.org/software/license.


----------------------------------------------------------------------
Target: Generic


----------------------------------------------------------------------
Target: Linux


----------------------------------------------------------------------
Target: Firehose

CONTRIB/firehose/arref/arref.cocci -  Adjust array index
	Convert array index from the loop bound to the loop index.

CONTRIB/firehose/badand/badand.cocci -  Convert && to ||
	The pattern !E && !E->fld is nonsensical.  The patch below updates this
	according to the assumption that && should be ||.  But perhaps another
	solution was intended.

CONTRIB/firehose/badkm2/badkm2.cocci -  Ensure a consistent return value in error case
	Typically, the return value desired for the failure of a function with an
	integer return value is a negative integer.  In these cases, the return
	value is sometimes a negative integer and sometimes 0, due to a subsequent
	initialization of the return variable within the loop.

CONTRIB/firehose/bitcall/bitcall.cocci -  convert & to &&
	The use of & to obtain a conjunction that evaluates both of its arguments
	seems unnecessarily tricky.

CONTRIB/firehose/da/da.cocci -  Correct double assignment
	The double assignment is meant to be a bit-or to combine two values.

CONTRIB/firehose/double_null/double_null.cocci -  Correct NULL test
	Test the value that was just allocated rather than the previously tested one.

CONTRIB/firehose/doubleinit/doubleinit.cocci -  Remove duplicate structure field initialization
	The definition of uml_netdev_ops has initializations of a local function
	and eth_mac_addr for its ndo_set_mac_address field.  This change uses only
	the local function.

CONTRIB/firehose/doubletest/doubletest.cocci -  Remove double test
	The current code tests the gpio_vid0 field twice.  Test the gpio_vid1
	fields in place of the second gpio_vid0 test.

CONTRIB/firehose/drop_continue/drop_continue.cocci -  Drop unnecessary continue
	Continue is not needed at the bottom of a loop.

CONTRIB/firehose/if-semicolon/if-semicolon.cocci -  Detect semicolon after if
	Detect a semicolon after if(...) that is preventing the error check to
	work correctly. Removing this semicolon will change the code behavior,
	but this is intended.

CONTRIB/firehose/ifaddr/ifaddr.cocci -  Test of a variable/field address
	the address of a variable or field is non-zero is likely always to bo
	non-zero

CONTRIB/firehose/noderef/noderef.cocci -  Correct size computation
	The size argument to kcalloc should be the size of desired structure,
	not the pointer to it.

CONTRIB/firehose/ret/ret.cocci -  Useless goto and return
	Useless goto and return