mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
drm/tegra: Fix check for undefined submit flags
Fix the downstream-specific check for undefined submit flags to use bitwise negation instead of logical. The author appears to have written enough Rust to forget about bitwise negation using a different operator. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Change-Id: I2093ea78450ea7ef9173df41a6cd242061f3fe93 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2861969 Reviewed-by: Santosh BS <santoshb@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
e837f4e112
commit
0c4db82587
@@ -546,7 +546,7 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (args->flags & !(DRM_TEGRA_SUBMIT_SECONDARY_SYNCPT)) {
|
||||
if (args->flags & ~(DRM_TEGRA_SUBMIT_SECONDARY_SYNCPT)) {
|
||||
SUBMIT_ERR(context, "invalid flags '%#x'", args->flags);
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user