summaryrefslogtreecommitdiffstats
path: root/net/irda
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-07-30 16:20:25 -0700
committerSage Weil <sage@inktank.com>2012-07-30 18:15:31 -0700
commita4107026976f06c9a6ce8cc84a763564ee39d901 (patch)
treef8f83ffd302b50f9296fb36cc046409feafd597c /net/irda
parent6194ea895e447fdf4adfd23f67873a32bf4f15ae (diff)
downloadop-kernel-dev-a4107026976f06c9a6ce8cc84a763564ee39d901.zip
op-kernel-dev-a4107026976f06c9a6ce8cc84a763564ee39d901.tar.gz
libceph: (re)initialize bio_iter on start of message receive
Previously, we were opportunistically initializing the bio_iter if it appeared to be uninitialized in the middle of the read path. The problem is that a sequence like: - start reading message - initialize bio_iter - read half a message - messenger fault, reconnect - restart reading message - ** bio_iter now non-NULL, not reinitialized ** - read past end of bio, crash Instead, initialize the bio_iter unconditionally when we allocate/claim the message for read. Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'net/irda')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud