summaryrefslogtreecommitdiff
path: root/curvetun
diff options
context:
space:
mode:
authorDaniel Roberson <daniel@planethacker.net>2018-04-18 21:52:01 -0700
committerTobias Klauser <tklauser@distanz.ch>2018-04-19 16:13:56 +0200
commit15f78c073276ad49b3541215b2a302b1a32c9f2b (patch)
tree3e2175cb2b44dd79d017ecce4c1e307032ace840 /curvetun
parent65ba0860baa53670e79211edbd047a8080ec1f8a (diff)
mausezahn: fix strtok() segfault if s or m are missing
The -d flag will result in a segmentation fault if 'm' or 's' are specified without a numeric value. Example: mausezahn -d m ### Results in a crash Signed-off-by: Daniel Roberson <daniel@planethacker.net> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'curvetun')
0 files changed, 0 insertions, 0 deletions
4553dddcf5b81b22&id2=575ddce0507789bf9830d089557d2199d2f91865'>diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/firewire/nosy-dump.c')