aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-03-31 18:47:24 +0200
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-04-02 10:53:58 +0200
commit43ba3d4af7a73ae958207caada6af0612d67f08e (patch)
tree985c1b687af6ca54fea0312caee9691a60e3c6d9 /lib
parentdriver core: class: fix slab-use-after-free Read in class_register() (diff)
downloadlinux-43ba3d4af7a73ae958207caada6af0612d67f08e.tar.gz
linux-43ba3d4af7a73ae958207caada6af0612d67f08e.tar.bz2
linux-43ba3d4af7a73ae958207caada6af0612d67f08e.zip
pktcdvd: simplify the class_pktcdvd logic
There is no need to dynamically create and destroy the class_pktcdvd structure, just make it static and remove the memory allocation logic which simplifies and cleans up the logic a lot. Cc: linux-block@vger.kernel.org Cc: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20230331164724.319703-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions