lkml.org 
[lkml]   [2014]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] farsync: fix invalid memory accesses in fst_add_one() and fst_init_card()
From
From: Alexey Khoroshilov <khoroshilov@ispras.ru>
Date: Sat, 5 Jul 2014 03:35:50 +0400

> - }
> + card->nports = i;
> + return (card->nports == 0) ? err : 0;
> + }

I don't think this is the right thing to do.

This will cause the caller to not free the IRQ or any of the
other resources.



\
 
 \ /
  Last update: 2014-07-09 01:01    [W:0.082 / U:1.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site