summaryrefslogtreecommitdiff
path: root/trafgen
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-11 14:48:10 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-11 14:48:10 +0100
commit2643e4e881eb11c1ca1fbd551ce60f035a32007b (patch)
treea34bda1f3290b504546f25e8ae9682ba475467ec /trafgen
parent2f43dee3a51eeb96746c0f27bba837b9e423788b (diff)
geoip: Don't NULL-terminate download buffer
The end of the buffer might already contain part of the data payload. Setting the last byte to 0 will thus corrupt the gz file, leading to failed decompression (or previously, to invalid GeoIP database files). The NULL-termination is not necessary in this case, so just omit it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen')
0 files changed, 0 insertions, 0 deletions
rencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/atm/cxacru.c')