aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMichel Thierry <[email protected]>2018-01-08 10:37:34 -0800
committerRodrigo Vivi <[email protected]>2018-02-01 07:31:07 -0800
commit8466169ab9fe9f0c3412881116aca895feea6e70 (patch)
treefd1a8746dd5f8731ddb1361d01003cbcbf39a2b3 /net/unix/sysctl_net_unix.c
parentcc753fbe1ac47560e1517e3e11fb0c8a3c95eef5 (diff)
drm/i915/gvt: Do not use I915_NUM_ENGINES to iterate over the mocs regs array
The mocs reg array is defined locally but then we iterate over its elements using I915_NUM_ENGINES. There is no 'hard' connection between I915_NUM_ENGINES and the regs array and there will be problems if either of them increases. Use the size of the mocs reg array instead to safely iterate over it. Signed-off-by: Michel Thierry <[email protected]> Cc: Weinan Li <[email protected]> Cc: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions