summaryrefslogtreecommitdiff
path: root/net/dccp
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-07-25 11:36:25 -0700
committerDavid S. Miller <davem@davemloft.net>2017-07-26 17:01:43 -0700
commit0c3a8f8b8fabff4f3ad2dd7b95ae0e90cdd1aebb (patch)
treed5977d97a9fed104cabe1c35086b3ad6c6afb125 /net/dccp
parentd94708a553022bf012fa95af10532a134eeb5a52 (diff)
netpoll: Fix device name check in netpoll_setup()
Apparently netpoll_setup() assumes that netpoll.dev_name is a pointer when checking if the device name is set: if (np->dev_name) { ... However the field is a character array, therefore the condition always yields true. Check instead whether the first byte of the array has a non-zero value. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions