Don't memcpy too far whem drm_realloc() is called with a smaller size.
authoroga <oga@openbsd.org>
Fri, 29 Aug 2008 13:44:23 +0000 (13:44 +0000)
committeroga <oga@openbsd.org>
Fri, 29 Aug 2008 13:44:23 +0000 (13:44 +0000)
commitc970e88842aafe77522fded9af754997f22880b9
treeca34b34c314a50ef344e687031446caaa3f9b77c
parenta095b9c73f948d7d4f926f2ca9c0fcf4c955335f
Don't memcpy too far whem drm_realloc() is called with a smaller size.
This was never noticed since it's always used with a larger size.

Noticed by Stephane Marchesin.
sys/dev/pci/drm/drm_memory.c