cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: cgroup: introduce cgroup namespaces
@ 2016-02-17 18:58 Dan Carpenter
  2016-02-18 16:46 ` [PATCH cgroup/for-4.5-fixes] cgroup: fix alloc_cgroup_ns() error handling in copy_cgroup_ns() Tejun Heo
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Carpenter @ 2016-02-17 18:58 UTC (permalink / raw)
  To: adityakali-hpIqsD4AKlfQT0dZR+AlfA; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA

Hello Aditya Kali,

The patch a79a908fd2b0: "cgroup: introduce cgroup namespaces" from
Jan 29, 2016, leads to the following static checker warning:

	kernel/cgroup.c:6091 copy_cgroup_ns()
	error: 'new_ns' dereferencing possible ERR_PTR()

kernel/cgroup.c
  6085  
  6086          err = -ENOMEM;
  6087          new_ns = alloc_cgroup_ns();
  6088          if (!new_ns)
                    ^^^^^^^
This should be an IS_ERR() check.

  6089                  goto err_out;
  6090  
  6091          new_ns->user_ns = get_user_ns(user_ns);

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-02-29 21:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 18:58 cgroup: introduce cgroup namespaces Dan Carpenter
2016-02-18 16:46 ` [PATCH cgroup/for-4.5-fixes] cgroup: fix alloc_cgroup_ns() error handling in copy_cgroup_ns() Tejun Heo
     [not found]   ` <20160218164658.GD13177-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2016-02-18 16:57     ` Aditya Kali
2016-02-18 20:21     ` Dan Carpenter
2016-02-18 20:26       ` Tejun Heo
     [not found]         ` <20160218202650.GH13177-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2016-02-18 21:26           ` Dan Carpenter
2016-02-28 13:59             ` [PATCH cgroup/for-4.6-ns] cgroup: fix and restructure " Tejun Heo
     [not found]               ` <20160228135933.GT3965-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
2016-02-29  8:50                 ` Serge Hallyn
2016-02-29 21:23                   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).