summaryrefslogtreecommitdiffstats
path: root/tools/spi
diff options
context:
space:
mode:
authorpiaojun <piaojun@huawei.com>2018-04-05 16:19:36 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-05 21:36:22 -0700
commitba16ddfbeb9dde0df67cdb2006820e9cf4d99386 (patch)
tree4923d608fcb9fd3de8390345c9b42f686064287b /tools/spi
parent39ec3774e3e8ebd5e45b0a5d071531d36f67c158 (diff)
downloadop-kernel-dev-ba16ddfbeb9dde0df67cdb2006820e9cf4d99386.zip
op-kernel-dev-ba16ddfbeb9dde0df67cdb2006820e9cf4d99386.tar.gz
ocfs2/o2hb: check len for bio_add_page() to avoid getting incorrect bio
We need to check len for bio_add_page() to make sure the bio has been set up correctly, otherwise we may submit incorrect data to device. Link: http://lkml.kernel.org/r/5ABC3EBE.5020807@huawei.com Signed-off-by: Jun Piao <piaojun@huawei.com> Reviewed-by: Yiwen Jiang <jiangyiwen@huawei.com> Reviewed-by: Changwei Ge <ge.changwei@h3c.com> Acked-by: Joseph Qi <jiangqi903@gmail.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <ge.changwei@h3c.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/spi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud