Re: [PATCH] drm/amdgpu_vm: fix boolean expressions

From: Gustavo A. R. Silva
Date: Thu Jan 03 2019 - 14:52:42 EST




On 1/3/19 1:17 PM, Kuehling, Felix wrote:
On 2019-01-03 12:34 p.m., Gustavo A. R. Silva wrote:
Fix boolean expressions by using logical AND operator '&&'
instead of bitwise operator '&'.

This issue was detected with the help of Coccinelle.

Fixes: c8c5e569c5b0 ("drm/amdgpu: Consolidate visible vs. real vram check v2.")
Actually, this bug goes back further, to 9a4b7d4c769e ("drm/amdgpu: Add
vm context module param").


You're right. I'll fix that and send v2 shortly. I'll add your RB.

Anyway, the patch is Reviewed-by: Felix Kuehling <Felix.Kuehling@xxxxxxx>


Thanks
--
Gustavo