<ec7cefb0608111611v82ad973hf1650b184536001b@xxxxxxxxxxxxxx> <44ddd5b780824@xxxxx> <20060817.181056.71088906.davem@xxxxxxxxxxxxx> In-reply-to: <44dcfea4406f9@xxxxx> <ec7cefb0608111611v82ad973hf1650b184536001b@xxxxxxxxxxxxxx> <44ddd5b780824@xxxxx> <20060817.181056.71088906.davem@xxxxxxxxxxxxx> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="part44e5f9c6711d9" X-Mailer: Interfejs WWW poczty Wirtualnej Polski Organization: Poczta Wirtualnej Polski S.A. http://www.wp.pl/ X-User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030401 X-WP-IP: 213.76.92.125 X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO AS1=NO AS2=NO(0.504504) AS3=NO AS4=NO AS5=NO This is a multi-part message in MIME format. --part44e5f9c6711d9 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit Content-Disposition: inline Dnia 18-08-2006 o godz. 3:10 David Miller napisa³(a): > If you return "0" as the error, the caller in the device probing layer > grabs a reference to the device which will be a leak of the undelying > of_device object. > > A better way to fix this is probably to only match "le" and have > the probe code check the device parent for "ledma" or "lebuffer". > You should be able to confine all of your changes to the probe > match table and sunlance_sbus_probe(). > > Could you implement it like that and give it a test? > > Thanks. > This is a tested patch according to your sugestions (as far as I understood them). Regards, Krzysztof PS. Forget the previous patch. It is incorrect if "le" is standalone. ---------------------------------------------------- Najnowsze odkrycie ¶wiatowej muzyki- smacznej i snobistycznej. Wschodz±ca gwiazda, wybitnie utalentowana Sophie Solomon wraz z zespo³em w Warszawie!! http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fsophie_solomon_w_fabryce_trzciny.html&sid=846 --part44e5f9c6711d9 Content-Type: application/octet-stream; name="lance-id.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="lance-id.patch" LS0tIGxpbnV4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m5vZGUtPm5hbWUsICJsZWRtYSIpKSB7CisJCQlzdHJ1Y3Qgc2J1c19kbWEgKmxlZG1h ID0gZmluZF9sZWRtYSh0b19zYnVzX2RldmljZSgmcGFyZW50LT5kZXYpKTsKIAotCQllcnIgPSBz cGFyY19sYW5jZV9wcm9iZV9vbmUoc2Rldi0+Y2hpbGQsIE5VTEwsIHNkZXYpOwotCX0KKwkJCWVy ciA9IHNwYXJjX2xhbmNlX3Byb2JlX29uZShzZGV2LCBsZWRtYSwgTlVMTCk7CisJCX0gZWxzZSBp ZiAoIXN0cmNtcChwYXJlbnQtPm5vZGUtPm5hbWUsICJsZWJ1ZmZlciIpKSB7CisJCQllcnIgPSBz cGFyY19sYW5jZV9wcm9iZV9vbmUoc2RldiwgTlVMTCwgdG9fc2J1c19kZXZpY2UoJnBhcmVudC0+ ZGV2KSk7CisJCX0gZWxzZQorCQkJZXJyID0gc3BhcmNfbGFuY2VfcHJvYmVfb25lKHNkZXYsIE5V TEwsIE5VTEwpOworCX0gZWxzZQorCQllcnIgPSBzcGFyY19sYW5jZV9wcm9iZV9vbmUoc2Rldiwg TlVMTCwgTlVMTCk7CiAKIAlyZXR1cm4gZXJyOwogfQpAQCAtMTYwNCwxMiArMTYwNSw2IEBAIHN0 YXRpYyBzdHJ1Y3Qgb2ZfZGV2aWNlX2lkIHN1bmxhbmNlX3NidXMKIAl7CiAJCS5uYW1lID0gImxl IiwKIAl9LAotCXsKLQkJLm5hbWUgPSAibGVkbWEiLAotCX0sCi0JewotCQkubmFtZSA9ICJsZWJ1 ZmZlciIsCi0JfSwKIAl7fSwKIH07CiAK --part44e5f9c6711d9-- - To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html