Commit d6b13dde authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Null check

parent 0cf47b5a
......@@ -67,6 +67,7 @@ vrg_range_bytes(struct req *req, enum vdp_action act, void **priv,
struct vrg_priv *vrg_priv;
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
AN(priv);
CAST_OBJ_NOTNULL(vrg_priv, *priv, VRG_PRIV_MAGIC);
l = vrg_priv->range_low - vrg_priv->range_off;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment