lkml.org 
[lkml]   [2024]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH bpf-next 4/4] selftests/bpf: Add a null pointer check for the serial_test_tp_attach_query
    From

    > Add the malloc failure checking to avoid possible null
    > dereference.


    How do you think about to use the following wording variant?

    Add a return value check so that a null pointer dereference will be avoided
    after a memory allocation failure.


    Would you like to add the tag “Fixes” accordingly?

    Regards,
    Markus

    \
     
     \ /
      Last update: 2024-04-24 12:49    [W:4.045 / U:0.548 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site