X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FLINUX%2Fosi_vnodeops.c;h=966e98a9d562a7e57ae79e22be0a6e243328c266;hp=9a070f28f341881c11f6b845662657b9fe65166a;hb=89e80c354c404dedc0e5197f99710db0e5e08767;hpb=b1ad473be01162fe9b3835544a835c4dcf0fcb35 diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 9a070f2..966e98a 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -3082,6 +3082,10 @@ afs_linux_write_begin(struct file *file, struct address_space *mapping, int code; page = grab_cache_page_write_begin(mapping, index, flags); + if (!page) { + return -ENOMEM; + } + *pagep = page; code = afs_linux_prepare_write(file, page, from, from + len);