summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-03-11 15:12:26 +0100
committerTobias Klauser <tklauser@distanz.ch>2014-03-11 15:12:26 +0100
commit632e1a699e5d1d3edb822b8f55c0b55b9c7e161e (patch)
tree36dc1d9856fee27050eec85135d7568f51b41893 /dev.h
parente1af615aca2fa6e5927645eaa944db6fa89f61a4 (diff)
pcap_io: Only check byteswapped linktype if pcap magic is swapped
In pcap_validate_header() the linktype and the byte-swapped linktype are currently checked against the supported linktypes. Since the swapped linktype is always larger than LINKTYPE_MAX, only one of the two tests was actually done. Make this intention a bit more clear by explicitly checking only for either the swapped or non-swapped linktype, depending on whether the pcap magic is swapped. Also make the error messages a bit more verbose regarding the major/minor version. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'dev.h')
0 files changed, 0 insertions, 0 deletions
g mod_timer() instead of add_timer_on() which avoids the problem because mod_timer() can handle already queued timers. Use __start_timer() everywhere so the earliest armed expiry time is preserved. Reported-by: Erik Veijola <erik.veijola@intel.com> Tested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Borislav Petkov <bp@alien8.de> Cc: Tony Luck <tony.luck@intel.com> Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1701310936080.3457@nanos Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'sound/pci/lola')