flowtop-libs = -lurcu \
$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnetfilter_conntrack 2> /dev/null ) \
$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs ncurses 2> /dev/null \
|| echo '-lncurses') \
$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs tinfo 2> /dev/null ) \
-lpthread
ifeq ($(CONFIG_GEOIP), 1)
flowtop-libs += -lGeoIP \
-lz
endif
flowtop-objs = xmalloc.o \
str.o \
sig.o \
sock.o \
proc.o \
dev.o \
link.o \
hash.o \
lookup.o \
screen.o \
die.o \
sysctl.o \
ui.o \
flowtop.o
ifeq ($(CONFIG_GEOIP), 1)
flowtop-objs += geoip.o \
ioops.o
endif
flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses) \
$(shell $(PKG_CONFIG) --cflags libnetfilter_conntrack)
flowtop-confs = tcp.conf \
udp.conf \
geoip.conf
m'>
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>