summaryrefslogtreecommitdiff
path: root/lookup.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-27 12:11:09 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-10-27 12:11:09 +0100
commite3822bdbd11f1546b002f00cc018a612e2f3d3e5 (patch)
tree609b1c3fae9bfd92b44fdb44b5131d2efcbb939a /lookup.h
parentbd031f809422ea88b9619924911aa5112f95b6b3 (diff)
flowtop: Use strlcpy instead of memcpy to copy strings
Make sure we always terminate the strings with '\0'. Also only set the first byte to '\0' instead of memset()ing the entire buffer in case no city/country is returned. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lookup.h')
0 files changed, 0 insertions, 0 deletions
ccb6434718c0cc781fdf943c884cc0'>diff)
HID: cp2112: fix sleep-while-atomic
A recent commit fixing DMA-buffers on stack added a shared transfer buffer protected by a spinlock. This is broken as the USB HID request callbacks can sleep. Fix this up by replacing the spinlock with a mutex. Fixes: 1ffb3c40ffb5 ("HID: cp2112: make transfer buffers DMA capable") Cc: stable <stable@vger.kernel.org> # 4.9 Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/testing/selftests/vDSO')