Skip to content

Commit

Permalink
5976 e1000g use after free on start failure
Browse files Browse the repository at this point in the history
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Marcel Telka <marcel.telka@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
  • Loading branch information
Josef 'Jeff' Sipek authored and gwr committed Jun 4, 2015
1 parent 8370701 commit bcfab05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/src/uts/common/io/e1000g/e1000g_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,9 @@ e1000g_free_rx_packets(e1000g_rx_data_t *rx_data, boolean_t full_release)
packet = next_packet;
}

if (full_release)
rx_data->packet_area = NULL;

mutex_exit(&e1000g_rx_detach_lock);
}

Expand Down

0 comments on commit bcfab05

Please sign in to comment.