Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932214AbcLITyz (ORCPT ); Fri, 9 Dec 2016 14:54:55 -0500 Received: from mout.web.de ([212.227.15.4]:65518 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbcLITyx (ORCPT ); Fri, 9 Dec 2016 14:54:53 -0500 Subject: Re: md: Combine two kmalloc() calls into one in sb_equal() To: Bernd Schubert References: <71044708-c5e4-3a14-b162-dfc600311a60@fastmail.fm> Cc: linux-raid@vger.kernel.org, Shaohua Li , LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: Date: Fri, 9 Dec 2016 20:54:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <71044708-c5e4-3a14-b162-dfc600311a60@fastmail.fm> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:DgcuwvLGI32EbP9UIgHzeEEUT5qHSYxsgi5WZ3zyxY2vbmn3o9T 8gtecs78RjFrGJ6/1DKJVFKSSJyKbgoNc7RLKDPVXgvMMVDcJpcfRvILw3WrSBTO3W178ih h0BtYoXOnosY5orOzO3bsPo1H5UHwfyEWVPeGmNdfh9acPcY9vEc7j4FpW5LfDqc9/eZtOr 2VGiNfMAdOwFj2RsybKUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:bP15EF8c1es=:cmYKniKifUpj6mUBaqpBAh AsTbel6y7qyR0lUKNPjRnZc12ILXWDZyHeFNm5ZYj5LASJGtlaQISEIxUEB+O7j5VqfJBUYlm gV3sww5GKkmI1BBxqmmt24q6sM0PJz0GoZBjsKqguvQyvBVMnl03/tPbwhe4zGoB/wLBu8g4P v8wUCvvZIDAaXHhGJzuJ1khgNUMPWP0Tb4dvcVV861rEEcWx6e7gPVTE0FzgqJ+RXZlAfJiQ5 khiHqxmjf9/hCUZ3DzOvb4nobwi+hA93KLOJ6sRSBlxKF5XcQKlV8p/bctKUxWVhsG0bA+JxN UKYSyzdA1VwHvMSAfMtTQNKsE7kT2ImKuaSNQEUBywyhh7tOR76TADO1nGPi1JanTso2Zm+90 Ud7kdzr81dgZ5Rm8I2ZyHsV3WWWgsr4u+iXZ6Rd9p0Wrb4s4vgiUnfc6CrhIFPHbYVpg6TQAJ 6Uuq+JKG6p4QFR9DQEW/YV4uFqS0MtKRracje/CxmFL6t8uqIViH6Zeih8EZdVBCjPI6ZTS3s R8hw/FFEqArCWcttRCeRYoFPU5l6OoFhyXe/EtjCmRKE5ejHyWJ3zhH+TYoADBFkhFHfkXMEg 1f5Kr73LVtGBvgipgEkb0TM5UEyJLGIdgEmyLmO5kP1lN2Q9bFPZc4md5dhYWwiRgBrzgkoLZ l3epkGmFkB6JS02TYUT2kEt27C+YnKmhp7TZoB4SWjwnbDNKDWUVNs8jqZU4Rwe5DKYs7npw+ TpUxqD7O68JcmCPrl9CEJMt7lyO6eyogP8A+M8yDYcVJt5N4muAF1BRch5CECFpz9b0hYNgwb ZEx9Hyi Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 205 Lines: 7 > So where did you get the idea from that it is not checked immediately? Is another variable assignment performed so far before the return value is checked from a previous function call? Regards, Markus