From: Konrad Lipinski Date: Tue, 20 Sep 2016 10:27:52 +0000 (+0200) Subject: kdbus: fix NULL free on TIZEN code path for sending unmatched replies X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36716ae2b21c0144aa737fa89f9a4efe9117ddd2;p=platform%2Fkernel%2Flinux-exynos.git kdbus: fix NULL free on TIZEN code path for sending unmatched replies --- diff --git a/ipc/kdbus/connection.c b/ipc/kdbus/connection.c index 0406054d4069..60562018dcd7 100644 --- a/ipc/kdbus/connection.c +++ b/ipc/kdbus/connection.c @@ -1049,7 +1049,8 @@ static int kdbus_conn_reply(struct kdbus_conn *src, exit: up_read(&bus->name_registry.rwlock); - if (dontWant) /* if the other side is no longer interested, we have to free the reply ourselves */ + /* NOTE: check for reply being non-NULL only necessary on TIZEN because replies are not being filtered */ + if (dontWant && reply) /* if the other side is no longer interested, we have to free the reply ourselves */ kdbus_reply_free(reply); return ret; }