r915: fixed a bug caused by the latest change
This commit is contained in:
parent
32ab6ce15b
commit
e02bebd96d
5
chain.c
5
chain.c
|
|
@ -28,7 +28,10 @@ mm128_t *mm_chain_dp(int max_dist_x, int max_dist_y, int bw, int max_skip, int m
|
||||||
mm128_t *b, *w;
|
mm128_t *b, *w;
|
||||||
|
|
||||||
if (_u) *_u = 0, *n_u_ = 0;
|
if (_u) *_u = 0, *n_u_ = 0;
|
||||||
if (n == 0 || a == 0) return 0;
|
if (n == 0 || a == 0) {
|
||||||
|
kfree(km, a);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
f = (int32_t*)kmalloc(km, n * 4);
|
f = (int32_t*)kmalloc(km, n * 4);
|
||||||
p = (int32_t*)kmalloc(km, n * 4);
|
p = (int32_t*)kmalloc(km, n * 4);
|
||||||
t = (int32_t*)kmalloc(km, n * 4);
|
t = (int32_t*)kmalloc(km, n * 4);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue