Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e30d541 authored by Bhavya Sokke Mallikarjunappa's avatar Bhavya Sokke Mallikarjunappa
Browse files

netfilter: xt_HARDIDLETIMER: Add null check



Add NULL pointer check

Change-Id: I6d915e818568be861cef8f5ea1b04c2897e09cc9
Signed-off-by: default avatarBhavya Sokke Mallikarjunappa <bsokke@codeaurora.org>
parent c3e072e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ static ssize_t hardidletimer_tg_show(struct kobject *kobj,
	if (ktimespec.tv_sec >= 0)
		return snprintf(buf, PAGE_SIZE, "%ld\n", ktimespec.tv_sec);

	if (timer->send_nl_msg)
	if (timer != NULL && timer->send_nl_msg)
		return snprintf(buf, PAGE_SIZE, "0 %ld\n", ktimespec.tv_sec);
	else
		return snprintf(buf, PAGE_SIZE, "0\n");