tipc: Fix log buffer memory leak if initialization fails
authorAnders Kaseorg <[andersk@ksplice.com]>
Tue, 17 Aug 2010 11:00:03 +0000 (11:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2010 00:31:51 +0000 (17:31 -0700)
commitf81380925209bc60732a57eef41ab440c056aacf
treed72c28aa2d101acacc733f41678a1764885b74f9
parent24763d80fbb45aaf477d53c2203c929f6c41b5fc
tipc: Fix log buffer memory leak if initialization fails

Moves log buffer cleanup into tipc_core_stop() so that memory allocated
for the log buffer is freed if tipc_core_start() is unsuccessful.

Signed-off-by: Anders Kaseorg <andersk@ksplice.com>
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/core.c