Message ID | 1f1c21cf-c34c-418c-b00c-8e6474f12612@web.de (mailing list archive) |
---|---|
State | Rejected, archived |
Headers | show |
Series | powerpc/powernv/vas: Adjustments for two function implementations | expand |
diff --git a/arch/powerpc/platforms/powernv/vas-window.c b/arch/powerpc/platforms/powernv/vas-window.c index b664838008c1..b51219b4b698 100644 --- a/arch/powerpc/platforms/powernv/vas-window.c +++ b/arch/powerpc/platforms/powernv/vas-window.c @@ -545,7 +545,7 @@ static struct pnv_vas_window *vas_window_alloc(struct vas_instance *vinst) window = kzalloc(sizeof(*window), GFP_KERNEL); if (!window) - goto out_free; + goto release_window_id; window->vinst = vinst; window->vas_win.winid = winid; @@ -559,6 +559,7 @@ static struct pnv_vas_window *vas_window_alloc(struct vas_instance *vinst) out_free: kfree(window); +release_window_id: vas_release_window_id(&vinst->ida, winid); return ERR_PTR(-ENOMEM); }