patch-2.4.0-test11 linux/fs/ncpfs/ncplib_kernel.c
Next file: linux/fs/ncpfs/symlink.c
Previous file: linux/fs/ncpfs/mmap.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue Nov 14 13:16:33 2000
- Orig file:
v2.4.0-test10/linux/fs/ncpfs/ncplib_kernel.c
- Orig date:
Tue Jul 18 22:48:32 2000
diff -u --recursive --new-file v2.4.0-test10/linux/fs/ncpfs/ncplib_kernel.c linux/fs/ncpfs/ncplib_kernel.c
@@ -1005,6 +1005,8 @@
/* this is wrong! */
vname_cc = kmalloc(vlen, GFP_KERNEL);
+ if (!vname_cc)
+ return -ENOMEM;
for (i = 0; i < vlen; i++)
vname_cc[i] = ncp_tolower(in, vname[i]);
vname = vname_cc;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)