/* * JFFS2 -- Journalling Flash File System, Version 2. * * Copyright © 2001-2007 Red Hat, Inc. * * Created by David Woodhouse * * For licensing information, see the file 'LICENCE' in this directory. * */ #include #include #include "nodelist.h" int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen) { if (!jffs2_is_writebuffered(c)) { if (jffs2_sum_active()) { int res; res = jffs2_sum_add_kvec(c, vecs, count, (uint32_t) to); if (res) { return res; } } } return mtd_writev(c->mtd, vecs, count, to, retlen); } int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char *buf) { int ret; ret = mtd_write(c->mtd, ofs, len, retlen, buf); if (jffs2_sum_active()) { struct kvec vecs[1]; int res; vecs[0].iov_base = (unsigned char *) buf; vecs[0].iov_len = len; res = jffs2_sum_add_kvec(c, vecs, 1, (uint32_t) ofs); if (res) { return res; } } return ret; } '> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound/cs8427.h')
ad441a5aac9ad55ec2434d8fb46'>fd816e548e12745d4776ad0bd661bec142d3ea06 /net/batman-adv/bat_v.h
parentc26819900036f5b91608051a0fc7c76f6b4ffc7b (diff)
crypto: algif_aead - Fix kernel panic on list_del
Kernel panics when userspace program try to access AEAD interface. Remove node from Linked List before freeing its memory. Cc: <stable@vger.kernel.org> Signed-off-by: Harsh Jain <harsh@chelsio.com> Reviewed-by: Stephan Müller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/batman-adv/bat_v.h')