« Previous | Next » 

Revision a290da25

IDa290da25a16b7c79d4a7a87f522b4068bca04979
Parent bc00f058
Child 0f5054f6

Added by Pavel Tvrdik over 4 years ago

rt-table: Fix kernel protocol export filter memory bug

Kernel protocol calls rt_export_merged(), which used @rte_update_pool for
temporary allocations, supposing it is called from other functions from
rt-table.c that handles locking and flushing of the linpool. Therefore,
linpool was not flushed properly and memory leaked.

Add linpool argument to rt_export_merged() and use @krt_filter_lp when
called from kernel protocol.

Thanks to Justin Cattle and Alexander Frolkin for the bugreport.

(Commit squashed and updated by Ondrej Zajicek)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences