rbd: ensure invalid pointers are made null
authorAlex Elder <elder@inktank.com>
Fri, 27 Jul 2012 04:37:14 +0000 (23:37 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:48 +0000 (14:30 -0500)
commitd78fd7ae03136c0610bee33eeebb4ffe67c752d5
tree7d016afa0a2aad5202384ea2b8e07e133079df03
parent0f1d3f938527f319d830ef3082c218c77cfd159f
rbd: ensure invalid pointers are made null

Fix a number of spots where a pointer value that is known to
have become invalid but was not reset to null.

Also, toss in a change so we use sizeof (object) rather than
sizeof (type).

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c