lkml.org 
[lkml]   [2005]   [Jun]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromAlexey Dobriyan <>
SubjectRe: v9fs-vfs-superblock-operations-and-glue.patch added to -mm tree
DateMon, 6 Jun 2005 14:35:31 +0400
On Monday 06 June 2005 10:24, akpm@osdl.org wrote:
>      v9fs: VFS superblock operations and glue

> --- /dev/null
> +++ 25-akpm/fs/9p/v9fs.c

> +int
> +v9fs_session_init(struct v9fs_session_info *v9ses,
> +		  const char *dev_name, char *data)
> +{

> +	v9ses->transport = kmalloc(sizeof(struct v9fs_transport), GFP_KERNEL);
> +	if (!v9ses->transport) {
> +		eprintk(KERN_WARNING,
> +			"Couldn't allocate string for transport struct\n");
> +		retval = -ENOMEM;
> +		goto SessCleanUp;
> +	}
> +
> +	v9ses->transport = trans_proto;

kmalloc and forget.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-06 10:34    [W:0.100 / U:0.080 seconds]
©2003-2008 Jasper Spaans