--- zzzz-none-000/linux-3.10.107/drivers/gpu/drm/ttm/ttm_agp_backend.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/gpu/drm/ttm/ttm_agp_backend.c 2021-02-04 17:41:59.000000000 +0000 @@ -126,6 +126,7 @@ agp_be->ttm.func = &ttm_agp_func; if (ttm_tt_init(&agp_be->ttm, bdev, size, page_flags, dummy_read_page)) { + kfree(agp_be); return NULL; }