[lxc-devel] [PATCH 2/2] coverity 1097616: don't deref NULL when subsystem doesn't have a '.'

Stéphane Graber stgraber at ubuntu.com
Wed Oct 30 13:53:18 UTC 2013


On Tue, Oct 29, 2013 at 04:46:21PM -0400, Dwight Engen wrote:
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/lxc/cgroup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c
> index 6aa4495..01ed040 100644
> --- a/src/lxc/cgroup.c
> +++ b/src/lxc/cgroup.c
> @@ -1242,7 +1242,7 @@ char *lxc_cgroup_path_get(const char *filename, const char *name,
>  	if (!group)
>  		return NULL;
>  
> -	path = lxc_cgroup_find_abs_path(subsystem, group, true, *p ? longer_file : NULL);
> +	path = lxc_cgroup_find_abs_path(subsystem, group, true, p ? longer_file : NULL);
>  	free(group);
>  	return path;
>  }
> -- 
> 1.8.3.1
> 
> 
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20131030/ded27e50/attachment.pgp>


More information about the lxc-devel mailing list