• Greg Kroah-Hartman's avatar
    staging: csr: remove CsrPmemAlloc · 786eeeb3
    Greg Kroah-Hartman authored
    It's just a wrapper around kmalloc(, GFP_KERNEL) + a call to panic() if
    we are out of memory, which is a very foolish thing to do (the panic
    that is.)
    
    So replace it with calls to kmalloc() and ignore the out-of-memory
    casese for now, odds are it will not be hit, and if it does, hey, we
    will end up panicing just the same as with the old code.
    
    Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
    Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
    Cc: Riku Mettälä <riku.mettala@bluegiga.com>
    Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    786eeeb3
sme_mgt.c 28 KB