Tag: 9b3a6549b2602ca30f58715a0071e29f9898cae9

drivers/scsi/ses.c: eliminate double free

Author: Julia Lawall <julia@diku.dk> The few lines below the kfree of hdr_buf may go to the label err_free which will also free hdr_buf. The most straightforward solution seems to be to just move the kfree of hdr_buf after these gotos. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) …

Continue reading