tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kmem_alloc(0, f)



martin%duskware.de@localhost (Martin Husemann) writes:

>An empty array still is 99% of the times a driver bug and simply caught
>when first trying the driver. All other call sides can simply avoid the
>allocation and use a NULL pointer instead.

Aren't zero sized allocations a must for Linux kernel shim compatibility?
If I remember correctly the major user was the radeon DRM code.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index