aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2013-10-10 14:46:37 +0200
committerDaniel Vetter <[email protected]>2013-10-16 22:06:39 +0200
commitaa5f8021811aede2e40aa715c55fbd87d945a443 (patch)
treea491c020dab146964f8ec6da84a47367b4dff7c1 /net/lapb/lapb_iface.c
parent80075d492f8773209e26d11d6bb13ba624ef95a4 (diff)
drm/i915: Use unsigned long for obj->user_pin_count
At least on linux sizeof(long) == sizeof(void*) and the thinking is that you can grab about as many references as there's memory. Doesn't really matter, just a bit of OCD since the fixed size data type in a pure in-kernel datastructure look off. v2: Ville asked for an overflow check since no one prevents userspace from incrementing the pin count forever. v3: s/INT/LONG/, noticed by Chris. Cc: Chris Wilson <[email protected]> Cc: Ville Syrjälä <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions