summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2017-06-23 17:51:31 +0200
committerBen Hutchings <ben@decadent.org.uk>2017-09-15 18:30:15 +0100
commitf4e204d830341635f6570b0cd0933852a742db0f (patch)
treeef732c5c32716a30d3d76358ce198d2d106deeec /lib
parent72a2cad7b6f5ac1ddd99390cab9fda140a39a529 (diff)
net: dp83640: Avoid NULL pointer dereference.
commit db9d8b29d19d2801793e4419f4c6272bf8951c62 upstream. The function, skb_complete_tx_timestamp(), used to allow passing in a NULL pointer for the time stamps, but that was changed in commit 62bccb8cdb69051b95a55ab0c489e3cab261c8ef ("net-timestamp: Make the clone operation stand-alone from phy timestamping"), and the existing call sites, all of which are in the dp83640 driver, were fixed up. Even though the kernel-doc was subsequently updated in commit 7a76a021cd5a292be875fbc616daf03eab1e6996 ("net-timestamp: Update skb_complete_tx_timestamp comment"), still a bug fix from Manfred Rudigier came into the driver using the old semantics. Probably Manfred derived that patch from an older kernel version. This fix should be applied to the stable trees as well. Fixes: 81e8f2e930fe ("net: dp83640: Fix tx timestamp overflow handling.") Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions