Commit 8cced121 authored by Gonglei (Arei)'s avatar Gonglei (Arei) Committed by Kevin Wolf
Browse files

xen_disk: fix possible null-ptr dereference

parent 8efc9363
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -589,6 +589,7 @@ static int blk_send_response_one(struct ioreq *ioreq)
        break;
    default:
        dst = NULL;
        return 0;
    }
    memcpy(dst, &resp, sizeof(resp));
    blkdev->rings.common.rsp_prod_pvt++;