krealloc() behaves identically to kmalloc when passed a NULL object pointer.
authorHasso Tepper <hasso@estpak.ee>
Mon, 22 Jun 2009 19:12:25 +0000 (22:12 +0300)
committerHasso Tepper <hasso@estpak.ee>
Mon, 22 Jun 2009 19:54:19 +0000 (22:54 +0300)
commitc6b8e74a50046472a27eb0cda2988f14aa6fb97f
tree996c6532b002774d7723029179e21c4f9c260bae
parentc6bd1f0ddcdd03077c6ef6938f231a9ddbe5ab6b
krealloc() behaves identically to kmalloc when passed a NULL object pointer.

If an error does occur we would have left max_context with an incorrect
value.

Obtained-from: FreeBSD
sys/dev/drm/drm_context.c