Ticket #7252: Fix-7252.patch

File Fix-7252.patch, 920 bytes (added by diver, 7 years ago)
  • src/add-ons/kernel/network/stack/device_interfaces.cpp

    From 39d011c02e8c43846894e749fb574c7a56cf7d1a Mon Sep 17 00:00:00 2001
    From: Evgeniy Abdraimov <zelenoviy@gmail.com>
    Date: Tue, 2 Apr 2013 11:42:20 +0400
    Subject: [PATCH 3/3] Fix #7252
    
    Prevent KDL in case of device removal
    ---
     .../kernel/network/stack/device_interfaces.cpp     |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/add-ons/kernel/network/stack/device_interfaces.cpp b/src/add-ons/kernel/network/stack/device_interfaces.cpp
    index a3030f0..3597fa7 100644
    a b device_link_changed(net_device* device)  
    761761status_t
    762762device_removed(net_device* device)
    763763{
    764     MutexLocker locker(sLock);
     764//  MutexLocker locker(sLock);
    765765
    766766    // hold a reference to the device interface being removed
    767767    // so our put_() will (eventually) do the final cleanup