| Submitter | Tim Kientzle |
|---|---|
| Date | March 27, 2012, 2:46 a.m. |
| Message ID | <2A2CB860-6BB6-46C5-B508-F7F97B1EB930@freebsd.org> |
| Download | mbox | patch |
| Permalink | /patch/148854/ |
| State | Not Applicable |
| Delegated to: | Anatolij Gustschin |
| Headers | show |
Comments
Dear Tim Kientzle, please do not top post / full quote. Especially not when submitting patches. In message <2A2CB860-6BB6-46C5-B508-F7F97B1EB930@freebsd.org> you wrote: > Hello, Anatolij, > > Thank you for your response. Modified patch below: > > > On Mar 26, 2012, at 4:06 AM, Anatolij Gustschin wrote: > > > Hi Tim, > > > > Thanks for the patch. Please see some comments below. > > > > On Tue, 21 Feb 2012 22:34:35 -0800 > > Tim Kientzle <kientzle@freebsd.org> wrote: > > > >> The one-line patch below fixes device enumeration through the ... All this would become the commit message - this doesn't work. Any such comments belong to the comment section, i. e. below the "---" line which would bepresentif you generated your patches using "git format- patch". Best regards, Wolfgang Denk
Patch
diff --git a/disk/part.c b/disk/part.c index f07a17f..35a2def 100644 --- a/disk/part.c +++ b/disk/part.c @@ -80,6 +80,9 @@ block_dev_desc_t *get_dev(char* ifname, int dev) block_dev_desc_t* (*reloc_get_dev)(int dev); char *name; + if (ifname == NULL) + return NULL; + name = drvr->name; #ifdef CONFIG_NEEDS_MANUAL_RELOC name += gd->reloc_off;