Re: [PATCH bpf-next v2 05/20] bpf: implement bpf_seq_read() for bpf iterator

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

 



On 5/5/20 12:56 PM, Andrii Nakryiko wrote:
+               seq->buf = kmalloc(seq->size, GFP_KERNEL);
+               if (!seq->buf)
+                       goto Enomem;
Why not just mutex_unlock and exit with -ENOMEM? Less goto'ing, more
straightforward.


no. please keep kernel coding style. goto is appropriate here.




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux