From 5f307a98fadcded368bbe8f95c445d0cc152a93e Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 23 Jun 2010 22:29:58 +0200 Subject: mtd_probe: add needed include, modprobe blacklist flag, and change some whitespace --- extras/mtd_probe/probe_smartmedia.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'extras/mtd_probe/probe_smartmedia.c') diff --git a/extras/mtd_probe/probe_smartmedia.c b/extras/mtd_probe/probe_smartmedia.c index ab6edea4b1..78841f05da 100644 --- a/extras/mtd_probe/probe_smartmedia.c +++ b/extras/mtd_probe/probe_smartmedia.c @@ -1,7 +1,4 @@ /* - * probe_smartmedia.c - * This file is part of mtd_probe - * * Copyright (C) 2010 - Maxim Levitsky * * mtd_probe is free software; you can redistribute it and/or modify @@ -23,7 +20,7 @@ #include #include #include - +#include #include #include #include @@ -37,9 +34,10 @@ static const uint8_t cis_signature[] = { }; -void probe_smart_media(int mtd_fd, mtd_info_t* info) { - +void probe_smart_media(int mtd_fd, mtd_info_t* info) +{ char* cis_buffer = malloc(SM_SECTOR_SIZE); + if (!cis_buffer) return; -- cgit v1.2.3-54-g00ecf