]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libceph: check for invalid mapping
authorSage Weil <sage@inktank.com>
Tue, 25 Sep 2012 03:59:48 +0000 (20:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:44 +0000 (11:38 -0800)
commitdfae3b3451c6da14df1fa62d76c8a4345d21bdb2
treed674f1e1998b9ae902ab74f235e1bd39d31525d4
parent73bba6fc44591587254fec8e867a99b5a2a28ba7
libceph: check for invalid mapping

(cherry picked from commit d63b77f4c552cc3a20506871046ab0fcbc332609)

If we encounter an invalid (e.g., zeroed) mapping, return an error
and avoid a divide by zero.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/ceph/osd_client.h
include/linux/ceph/osdmap.h
net/ceph/osd_client.c
net/ceph/osdmap.c