diff options
author | Kristian Høgsberg <krh@redhat.com> | 2009-06-09 01:50:41 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-12 15:37:28 +1000 |
commit | fbe0efb869efde8d847ede3a925230ef88910086 (patch) | |
tree | fb7df90bd25a77555db351a6db632e52aab311e2 /drivers/misc/ioc4.c | |
parent | 61f11699e7a92d932b31ded3715ad4f70eb26ef2 (diff) | |
download | op-kernel-dev-fbe0efb869efde8d847ede3a925230ef88910086.zip op-kernel-dev-fbe0efb869efde8d847ede3a925230ef88910086.tar.gz |
drm_calloc_large: check right size, check integer overflow, use GFP_ZERO
Previously we would check size instead of size * nmemb, and so would
never hit the vmalloc path. Also add integer overflow check as in kcalloc,
and allocate GFP_ZERO pages instead of memset()ing them.
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/misc/ioc4.c')
0 files changed, 0 insertions, 0 deletions